From 267cc613f61921caa5540a6a9437d939f953a90b Mon Sep 17 00:00:00 2001 From: alex1545 <42874203+alex1545@users.noreply.github.com> Date: Fri, 13 Sep 2019 16:02:41 -0400 Subject: [PATCH] Implement Get function for struct of type Value (#1147) --- contrib/go/cmd/metadata_merge/metadata_merge.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contrib/go/cmd/metadata_merge/metadata_merge.go b/contrib/go/cmd/metadata_merge/metadata_merge.go index 56a35b8ba..c799773c1 100644 --- a/contrib/go/cmd/metadata_merge/metadata_merge.go +++ b/contrib/go/cmd/metadata_merge/metadata_merge.go @@ -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).