Documentation ¶
Index ¶
- Constants
- type Field
- func New(name string, typ Type, defaultValue string, opts ...Option) Field
- func NewFloat(name string, defaultValue float64, opts ...Option) Field
- func NewInt(name string, defaultValue int, opts ...Option) Field
- func NewMeta(name string, defaultValue metadata.Data, opts ...Option) Field
- func NewMoney(name string, defaultValue currency.Amount, opts ...Option) Field
- func NewText(name, defaultValue string, opts ...Option) Field
- func NewToggle(name string, defaultValue bool, opts ...Option) Field
- type Option
- type Type
Constants ¶
View Source
const ( Text = Type("text") Toggle = Type("toggle") Int = Type("integer") Float = Type("float") Money = Type("money") Meta = Type("meta") )
Built-in field types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
Field is a field of a page.
Click to show internal directories.
Click to hide internal directories.