Pretty wraps the generated String() function to return only the name: "Year" vs "fieldYear".
()
| 65 | // Pretty wraps the generated String() function to return only the |
| 66 | // name: "Year" vs "fieldYear". |
| 67 | func (f field) Pretty() string { |
| 68 | return f.String()[5:] |
| 69 | } |
| 70 | |
| 71 | // A fieldSet is an immutable aggregate of fields. |
| 72 | // The zero value is an empty set. |