valuer.go 219 B

1234567891011121314
  1. package mapping
  2. type (
  3. Valuer interface {
  4. Value(key string) (interface{}, bool)
  5. }
  6. MapValuer map[string]interface{}
  7. )
  8. func (mv MapValuer) Value(key string) (interface{}, bool) {
  9. v, ok := mv[key]
  10. return v, ok
  11. }