builder

package
v0.0.48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmptyString = `""`
)

Variables

View Source
var (
	EMPTY = PureString("")

	NullValue = Null()
)

Functions

func Array

func Array(items []Jsonable) *arrayField

func Bool

func Bool(value bool) *boolField

func Float

func Float(value float32) *floatField

func Float64

func Float64(value float64) *float64Field

func Int

func Int(value int) *intField

func Int64

func Int64(value int64) *int64Field

func Null

func Null() *null

func Object

func Object(values map[string]Jsonable) *objectField

func PureString

func PureString(value string) *pureStringField

func Static

func Static(cfg *config.StaticGeneratedFieldConfig) *static

func String

func String(value string, trim ...bool) *stringField

Types

type Jsonable

type Jsonable interface {
	ToJson() string
	IsEmpty() bool
	Raw() interface{}
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL