You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-zero/core/mapping/valuer.go

15 lines
219 B
Go

package mapping
type (
Valuer interface {
Value(key string) (interface{}, bool)
}
MapValuer map[string]interface{}
)
func (mv MapValuer) Value(key string) (interface{}, bool) {
v, ok := mv[key]
return v, ok
}