builder

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmptyString = `""`
)

Variables

View Source
var (
	EMPTY = PureString("")
)

Functions

func Array

func Array(items []Jsonable) *arrayField

func Bool

func Bool(value bool) *boolField

func Float

func Float(value float32) *floatField

func Int

func Int(value int) *intField

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) *stringField

Types

type Jsonable

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

Jump to

Keyboard shortcuts

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