NewFieldSpec creates a new FieldSpec with its required fields.
(column string, typ field.Type)
| 668 | |
| 669 | // NewFieldSpec creates a new FieldSpec with its required fields. |
| 670 | func NewFieldSpec(column string, typ field.Type) *FieldSpec { |
| 671 | return &FieldSpec{Column: column, Type: typ} |
| 672 | } |
| 673 | |
| 674 | // AddColumnOnce adds the given column to the spec if it is not already present. |
| 675 | func (n *NodeSpec) AddColumnOnce(column string) *NodeSpec { |
no outgoing calls
no test coverage detected
searching dependent graphs…