()
| 387 | } |
| 388 | |
| 389 | func (n *Nature) IsFastMap() bool { |
| 390 | return n.Type != nil && |
| 391 | n.Type.Kind() == reflect.Map && |
| 392 | n.Type.Key().Kind() == reflect.String && |
| 393 | n.Type.Elem().Kind() == reflect.Interface |
| 394 | } |
| 395 | |
| 396 | func (n *Nature) Get(c *Cache, name string) (Nature, bool) { |
| 397 | if n.Kind == reflect.Map && n.TypeData != nil { |
no test coverage detected