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.
|
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
|
|
}
|