AddField adds a field spec to the interface.
(spec InterfaceFieldSpec)
| 77 | |
| 78 | // AddField adds a field spec to the interface. |
| 79 | func (iface *Interface) AddField(spec InterfaceFieldSpec) { |
| 80 | iface.fieldsL.Lock() |
| 81 | defer iface.fieldsL.Unlock() |
| 82 | iface.fields[spec.Name] = append(iface.fields[spec.Name], &spec) |
| 83 | } |
| 84 | |
| 85 | // FieldSpecs returns the interface's field specs visible under the given view. |
| 86 | func (iface *Interface) FieldSpecs(view call.View) []FieldSpec { |
no outgoing calls