Struct tags
A cheat sheet of all possible struct tags and their meanings. See the linked pages for further explanations with examples.
- •
- •
- •
- •
set:"-"— do not generate a generate#setter - •
save:"-"— do not save a field in settings - •
json:"-",xml:"-",toml:"-"— do not save/load a field with JSON/XML/TOML - •
copier:"-"— do not copy a field when copying/cloning a widget - •
- •
- •
grow:"{number}",grow-y:"{number}"— specifies the grow factor for the field’s value widget in the X or Y dimension. - •
new-window:"+"— causes a struct field in a form or table to open in a new popup dialog window by default, instead of requiring aShiftkey to do so. The default is to open a full window dialog (see dialog types). - •
display— customize the appearance of a field in a form or table- ◦
display:"-"— hide a field - ◦
display:"add-fields"— expand subfields in a form - ◦
display:"{inline|no-inline}"— display a slice/map/struct inline or not inline - ◦
display:"{switch-type}"— customize the type of a switch - ◦
display:"{date|time}"— only display the date or time of a time input
- ◦
- •