the assign operators, '=' and ':=', can set the value of dict items
This commit is contained in:
+3
-1
@@ -10,6 +10,8 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
const DictTypeName = "dict"
|
||||
|
||||
type DictType map[any]any
|
||||
|
||||
func IsDict(v any) (ok bool) {
|
||||
@@ -131,7 +133,7 @@ func (dict *DictType) String() string {
|
||||
}
|
||||
|
||||
func (dict *DictType) TypeName() string {
|
||||
return "dict"
|
||||
return DictTypeName
|
||||
}
|
||||
|
||||
func (dict *DictType) HasKey(target any) (ok bool) {
|
||||
|
||||
Reference in New Issue
Block a user