add metadata set
This commit is contained in:
parent
962588b649
commit
08ca61c121
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user