Skip to content

Commit

Permalink
Implement Get function for struct of type Value (#1147)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex1545 authored and rbe-toolchains-pr-bot committed Sep 13, 2019
1 parent fc8a190 commit 267cc61
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contrib/go/cmd/metadata_merge/metadata_merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ func (l *strArgList) Set(value string) error {
return nil
}

// Get returns an empty interface that may be type-asserted to the underlying
// value of type []string.
func (l *strArgList) Get() interface{} {
return l.Args
}

// metadataYAML stores the contents of one or more YAML file with the following
// top level keys:
// 1. "tags" (list of strings).
Expand Down

0 comments on commit 267cc61

Please sign in to comment.