Documentation ¶
Index ¶
- Constants
- Variables
- func Array(items []Interfacable) *arrayField
- func Bool(value bool) *boolField
- func Null() *null
- func Number(value float64) *number
- func Object(values map[string]Interfacable) *objectField
- func PureString(value string) *pureStringField
- func Static(cfg *config.StaticGeneratedFieldConfig) *static
- func String(value string, trim ...bool) *stringField
- type Interfacable
- type Jsonable
Constants ¶
View Source
const (
EmptyString = `""`
)
Variables ¶
View Source
var ( EMPTY = PureString("") NullValue = Null() )
Functions ¶
func Array ¶
func Array(items []Interfacable) *arrayField
func Object ¶
func Object(values map[string]Interfacable) *objectField
func PureString ¶
func PureString(value string) *pureStringField
func Static ¶
func Static(cfg *config.StaticGeneratedFieldConfig) *static
Types ¶
type Interfacable ¶ added in v1.0.0
type Interfacable interface { Jsonable ToInterface() interface{} }
func ToJsonable ¶ added in v1.0.0
func ToJsonable(raw json.RawMessage) Interfacable
func UUID ¶
func UUID(cfg *config.UUIDGeneratedFieldConfig) Interfacable
Click to show internal directories.
Click to hide internal directories.