fix metadata

This commit is contained in:
ginuerzh
2022-01-09 00:07:26 +08:00
parent f45dc93e92
commit 37e77bdce5
12 changed files with 118 additions and 159 deletions

View File

@ -30,6 +30,10 @@ func (m MapMetadata) Get(key string) interface{} {
return nil
}
func (m MapMetadata) Del(key string) {
delete(m, key)
}
func GetBool(md Metadata, key string) (v bool) {
if md == nil || !md.IsExists(key) {
return