StructField
StructField describes a struct field initializer.
Methods
Section titled “Methods”isOptional()
Section titled “isOptional()”isOptional():
boolean
IsOptional returns whether the field is optional.
Returns
Section titled “Returns”boolean
name()
Section titled “name()”name():
string
Name returns the name of the field.
Returns
Section titled “Returns”string
value()
Section titled “value()”value():
Expr
Value returns the field initialization expression.