(t reflect.Type)
| 21 | } |
| 22 | |
| 23 | func (s *structMap) get(t reflect.Type) *structSpec { |
| 24 | if v, ok := s.m.Load(t); ok { |
| 25 | return v.(*structSpec) |
| 26 | } |
| 27 | |
| 28 | spec := newStructSpec(t, "redis") |
| 29 | s.m.Store(t, spec) |
| 30 | return spec |
| 31 | } |
| 32 | |
| 33 | //------------------------------------------------------------------------------ |
| 34 |
no test coverage detected