Documentation ¶
Index ¶
- Constants
- Variables
- func Array(items []Interfacable) *arrayField
- func Bool(value bool) *boolField
- func Number(value float64) *number
- func Object(values map[string]Interfacable) *objectField
- func PureString(value string) *pureStringField
- func Static(cfg *StaticCfg) *static
- func String(value string, trim ...bool) *stringField
- type Interfacable
- type Jsonable
- type StaticCfg
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
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 ToJsonableFromString ¶ added in v1.0.3
func ToJsonableFromString(str string) Interfacable
func UUID ¶
func UUID(cfg *config.UUIDGeneratedFieldConfig) Interfacable
Click to show internal directories.
Click to hide internal directories.