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.
15 lines
219 B
Go
15 lines
219 B
Go
4 years ago
|
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
|
||
|
}
|