Skip to content

Commit

Permalink
add metadata set
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Apr 12, 2020
1 parent 962588b commit 08ca61c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions metadata/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ func (md Metadata) Get(key string) (string, bool) {
return val, ok
}

func (md Metadata) Set(key, val string) {
md[key] = val
}

func (md Metadata) Delete(key string) {
// delete key as-is
delete(md, key)
Expand Down

0 comments on commit 08ca61c

Please sign in to comment.