add metadata set

This commit is contained in:
Asim Aslam 2020-04-12 11:17:23 +01:00
parent 962588b649
commit 08ca61c121

View File

@ -25,6 +25,10 @@ func (md Metadata) Get(key string) (string, bool) {
return val, ok return val, ok
} }
func (md Metadata) Set(key, val string) {
md[key] = val
}
func (md Metadata) Delete(key string) { func (md Metadata) Delete(key string) {
// delete key as-is // delete key as-is
delete(md, key) delete(md, key)