basic

package
v0.0.0-...-27c7031 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool struct {
	Value bool
	Valid bool
	Set   bool
}

bool 'gotemplate'-based type for providing optional semantics without using pointers.

func (*Bool) Get

func (v *Bool) Get() bool

func (*Bool) IsSet

func (v *Bool) IsSet() bool

func (*Bool) IsValid

func (v *Bool) IsValid() bool

func (Bool) MarshalJSON

func (v Bool) MarshalJSON() ([]byte, error)

MarshalJSON implements a standard json marshaler interface.

func (Bool) MarshalPartialJSON

func (v Bool) MarshalPartialJSON(w *jwriter.Writer)

MarshalPartialJSON does JSON marshaling using partialencode interface.

func (*Bool) SetNull

func (v *Bool) SetNull()

func (*Bool) SetValue

func (v *Bool) SetValue(val bool)

func (Bool) String

func (v Bool) String() string

String implements a stringer interface using fmt.Sprint for the value.

func (*Bool) UnMarshalPartialJSON

func (v *Bool) UnMarshalPartialJSON(l *jlexer.Lexer)

UnMarshalPartialJSON does JSON unmarshaling using partialencode interface.

func (*Bool) UnmarshalJSON

func (v *Bool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements a standard json unmarshaler interface.

type Float32

type Float32 struct {
	Value float32
	Valid bool
	Set   bool
}

float32 'gotemplate'-based type for providing optional semantics without using pointers.

func (*Float32) Get

func (v *Float32) Get() float32

func (*Float32) IsSet

func (v *Float32) IsSet() bool

func (*Float32) IsValid

func (v *Float32) IsValid() bool

func (Float32) MarshalJSON

func (v Float32) MarshalJSON() ([]byte, error)

MarshalJSON implements a standard json marshaler interface.

func (Float32) MarshalPartialJSON

func (v Float32) MarshalPartialJSON(w *jwriter.Writer)

MarshalPartialJSON does JSON marshaling using partialencode interface.

func (*Float32) SetNull

func (v *Float32) SetNull()

func (*Float32) SetValue

func (v *Float32) SetValue(val float32)

func (Float32) String

func (v Float32) String() string

String implements a stringer interface using fmt.Sprint for the value.

func (*Float32) UnMarshalPartialJSON

func (v *Float32) UnMarshalPartialJSON(l *jlexer.Lexer)

UnMarshalPartialJSON does JSON unmarshaling using partialencode interface.

func (*Float32) UnmarshalJSON

func (v *Float32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements a standard json unmarshaler interface.

type Float64

type Float64 struct {
	Value float64
	Valid bool
	Set   bool
}

float64 'gotemplate'-based type for providing optional semantics without using pointers.

func (*Float64) Get

func (v *Float64) Get() float64

func (*Float64) IsSet

func (v *Float64) IsSet() bool

func (*Float64) IsValid

func (v *Float64) IsValid() bool

func (Float64) MarshalJSON

func (v Float64) MarshalJSON() ([]byte, error)

MarshalJSON implements a standard json marshaler interface.

func (Float64) MarshalPartialJSON

func (v Float64) MarshalPartialJSON(w *jwriter.Writer)

MarshalPartialJSON does JSON marshaling using partialencode interface.

func (*Float64) SetNull

func (v *Float64) SetNull()

func (*Float64) SetValue

func (v *Float64) SetValue(val float64)

func (Float64) String

func (v Float64) String() string

String implements a stringer interface using fmt.Sprint for the value.

func (*Float64) UnMarshalPartialJSON

func (v *Float64) UnMarshalPartialJSON(l *jlexer.Lexer)

UnMarshalPartialJSON does JSON unmarshaling using partialencode interface.

func (*Float64) UnmarshalJSON

func (v *Float64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements a standard json unmarshaler interface.

type Int

type Int struct {
	Value int
	Valid bool
	Set   bool
}

int 'gotemplate'-based type for providing optional semantics without using pointers.

func (*Int) Get

func (v *Int) Get() int

func (*Int) IsSet

func (v *Int) IsSet() bool

func (*Int) IsValid

func (v *Int) IsValid() bool

func (Int) MarshalJSON

func (v Int) MarshalJSON() ([]byte, error)

MarshalJSON implements a standard json marshaler interface.

func (Int) MarshalPartialJSON

func (v Int) MarshalPartialJSON(w *jwriter.Writer)

MarshalPartialJSON does JSON marshaling using partialencode interface.

func (*Int) SetNull

func (v *Int) SetNull()

func (*Int) SetValue

func (v *Int) SetValue(val int)

func (Int) String

func (v Int) String() string

String implements a stringer interface using fmt.Sprint for the value.

func (*Int) UnMarshalPartialJSON

func (v *Int) UnMarshalPartialJSON(l *jlexer.Lexer)

UnMarshalPartialJSON does JSON unmarshaling using partialencode interface.

func (*Int) UnmarshalJSON

func (v *Int) UnmarshalJSON(data []byte) error

UnmarshalJSON implements a standard json unmarshaler interface.

type Int16

type Int16 struct {
	Value int16
	Valid bool
	Set   bool
}

int16 'gotemplate'-based type for providing optional semantics without using pointers.

func (*Int16) Get

func (v *Int16) Get() int16

func (*Int16) IsSet

func (v *Int16) IsSet() bool

func (*Int16) IsValid

func (v *Int16) IsValid() bool

func (Int16) MarshalJSON

func (v Int16) MarshalJSON() ([]byte, error)

MarshalJSON implements a standard json marshaler interface.

func (Int16) MarshalPartialJSON

func (v Int16) MarshalPartialJSON(w *jwriter.Writer)

MarshalPartialJSON does JSON marshaling using partialencode interface.

func (*Int16) SetNull

func (v *Int16) SetNull()

func (*Int16) SetValue

func (v *Int16) SetValue(val int16)

func (Int16) String

func (v Int16) String() string

String implements a stringer interface using fmt.Sprint for the value.

func (*Int16) UnMarshalPartialJSON

func (v *Int16) UnMarshalPartialJSON(l *jlexer.Lexer)

UnMarshalPartialJSON does JSON unmarshaling using partialencode interface.

func (*Int16) UnmarshalJSON

func (v *Int16) UnmarshalJSON(data []byte) error

UnmarshalJSON implements a standard json unmarshaler interface.

type Int32

type Int32 struct {
	Value int32
	Valid bool
	Set   bool
}

int32 'gotemplate'-based type for providing optional semantics without using pointers.

func (*Int32) Get

func (v *Int32) Get() int32

func (*Int32) IsSet

func (v *Int32) IsSet() bool

func (*Int32) IsValid

func (v *Int32) IsValid() bool

func (Int32) MarshalJSON

func (v Int32) MarshalJSON() ([]byte, error)

MarshalJSON implements a standard json marshaler interface.

func (Int32) MarshalPartialJSON

func (v Int32) MarshalPartialJSON(w *jwriter.Writer)

MarshalPartialJSON does JSON marshaling using partialencode interface.

func (*Int32) SetNull

func (v *Int32) SetNull()

func (*Int32) SetValue

func (v *Int32) SetValue(val int32)

func (Int32) String

func (v Int32) String() string

String implements a stringer interface using fmt.Sprint for the value.

func (*Int32) UnMarshalPartialJSON

func (v *Int32) UnMarshalPartialJSON(l *jlexer.Lexer)

UnMarshalPartialJSON does JSON unmarshaling using partialencode interface.

func (*Int32) UnmarshalJSON

func (v *Int32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements a standard json unmarshaler interface.

type Int64

type Int64 struct {
	Value int64
	Valid bool
	Set   bool
}

int64 'gotemplate'-based type for providing optional semantics without using pointers.

func (*Int64) Get

func (v *Int64) Get() int64

func (*Int64) IsSet

func (v *Int64) IsSet() bool

func (*Int64) IsValid

func (v *Int64) IsValid() bool

func (Int64) MarshalJSON

func (v Int64) MarshalJSON() ([]byte, error)

MarshalJSON implements a standard json marshaler interface.

func (Int64) MarshalPartialJSON

func (v Int64) MarshalPartialJSON(w *jwriter.Writer)

MarshalPartialJSON does JSON marshaling using partialencode interface.

func (*Int64) SetNull

func (v *Int64) SetNull()

func (*Int64) SetValue

func (v *Int64) SetValue(val int64)

func (Int64) String

func (v Int64) String() string

String implements a stringer interface using fmt.Sprint for the value.

func (*Int64) UnMarshalPartialJSON

func (v *Int64) UnMarshalPartialJSON(l *jlexer.Lexer)

UnMarshalPartialJSON does JSON unmarshaling using partialencode interface.

func (*Int64) UnmarshalJSON

func (v *Int64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements a standard json unmarshaler interface.

type Int8

type Int8 struct {
	Value int8
	Valid bool
	Set   bool
}

int8 'gotemplate'-based type for providing optional semantics without using pointers.

func (*Int8) Get

func (v *Int8) Get() int8

func (*Int8) IsSet

func (v *Int8) IsSet() bool

func (*Int8) IsValid

func (v *Int8) IsValid() bool

func (Int8) MarshalJSON

func (v Int8) MarshalJSON() ([]byte, error)

MarshalJSON implements a standard json marshaler interface.

func (Int8) MarshalPartialJSON

func (v Int8) MarshalPartialJSON(w *jwriter.Writer)

MarshalPartialJSON does JSON marshaling using partialencode interface.

func (*Int8) SetNull

func (v *Int8) SetNull()

func (*Int8) SetValue

func (v *Int8) SetValue(val int8)

func (Int8) String

func (v Int8) String() string

String implements a stringer interface using fmt.Sprint for the value.

func (*Int8) UnMarshalPartialJSON

func (v *Int8) UnMarshalPartialJSON(l *jlexer.Lexer)

UnMarshalPartialJSON does JSON unmarshaling using partialencode interface.

func (*Int8) UnmarshalJSON

func (v *Int8) UnmarshalJSON(data []byte) error

UnmarshalJSON implements a standard json unmarshaler interface.

type String

type String struct {
	Value string
	Valid bool
	Set   bool
}

string 'gotemplate'-based type for providing optional semantics without using pointers.

func (*String) Get

func (v *String) Get() string

func (*String) IsSet

func (v *String) IsSet() bool

func (*String) IsValid

func (v *String) IsValid() bool

func (String) MarshalJSON

func (v String) MarshalJSON() ([]byte, error)

MarshalJSON implements a standard json marshaler interface.

func (String) MarshalPartialJSON

func (v String) MarshalPartialJSON(w *jwriter.Writer)

MarshalPartialJSON does JSON marshaling using partialencode interface.

func (*String) SetNull

func (v *String) SetNull()

func (*String) SetValue

func (v *String) SetValue(val string)

func (String) String

func (v String) String() string

String implements a stringer interface using fmt.Sprint for the value.

func (*String) UnMarshalPartialJSON

func (v *String) UnMarshalPartialJSON(l *jlexer.Lexer)

UnMarshalPartialJSON does JSON unmarshaling using partialencode interface.

func (*String) UnmarshalJSON

func (v *String) UnmarshalJSON(data []byte) error

UnmarshalJSON implements a standard json unmarshaler interface.

type Uint

type Uint struct {
	Value uint
	Valid bool
	Set   bool
}

uint 'gotemplate'-based type for providing optional semantics without using pointers.

func (*Uint) Get

func (v *Uint) Get() uint

func (*Uint) IsSet

func (v *Uint) IsSet() bool

func (*Uint) IsValid

func (v *Uint) IsValid() bool

func (Uint) MarshalJSON

func (v Uint) MarshalJSON() ([]byte, error)

MarshalJSON implements a standard json marshaler interface.

func (Uint) MarshalPartialJSON

func (v Uint) MarshalPartialJSON(w *jwriter.Writer)

MarshalPartialJSON does JSON marshaling using partialencode interface.

func (*Uint) SetNull

func (v *Uint) SetNull()

func (*Uint) SetValue

func (v *Uint) SetValue(val uint)

func (Uint) String

func (v Uint) String() string

String implements a stringer interface using fmt.Sprint for the value.

func (*Uint) UnMarshalPartialJSON

func (v *Uint) UnMarshalPartialJSON(l *jlexer.Lexer)

UnMarshalPartialJSON does JSON unmarshaling using partialencode interface.

func (*Uint) UnmarshalJSON

func (v *Uint) UnmarshalJSON(data []byte) error

UnmarshalJSON implements a standard json unmarshaler interface.

type Uint16

type Uint16 struct {
	Value uint16
	Valid bool
	Set   bool
}

uint16 'gotemplate'-based type for providing optional semantics without using pointers.

func (*Uint16) Get

func (v *Uint16) Get() uint16

func (*Uint16) IsSet

func (v *Uint16) IsSet() bool

func (*Uint16) IsValid

func (v *Uint16) IsValid() bool

func (Uint16) MarshalJSON

func (v Uint16) MarshalJSON() ([]byte, error)

MarshalJSON implements a standard json marshaler interface.

func (Uint16) MarshalPartialJSON

func (v Uint16) MarshalPartialJSON(w *jwriter.Writer)

MarshalPartialJSON does JSON marshaling using partialencode interface.

func (*Uint16) SetNull

func (v *Uint16) SetNull()

func (*Uint16) SetValue

func (v *Uint16) SetValue(val uint16)

func (Uint16) String

func (v Uint16) String() string

String implements a stringer interface using fmt.Sprint for the value.

func (*Uint16) UnMarshalPartialJSON

func (v *Uint16) UnMarshalPartialJSON(l *jlexer.Lexer)

UnMarshalPartialJSON does JSON unmarshaling using partialencode interface.

func (*Uint16) UnmarshalJSON

func (v *Uint16) UnmarshalJSON(data []byte) error

UnmarshalJSON implements a standard json unmarshaler interface.

type Uint32

type Uint32 struct {
	Value uint32
	Valid bool
	Set   bool
}

uint32 'gotemplate'-based type for providing optional semantics without using pointers.

func (*Uint32) Get

func (v *Uint32) Get() uint32

func (*Uint32) IsSet

func (v *Uint32) IsSet() bool

func (*Uint32) IsValid

func (v *Uint32) IsValid() bool

func (Uint32) MarshalJSON

func (v Uint32) MarshalJSON() ([]byte, error)

MarshalJSON implements a standard json marshaler interface.

func (Uint32) MarshalPartialJSON

func (v Uint32) MarshalPartialJSON(w *jwriter.Writer)

MarshalPartialJSON does JSON marshaling using partialencode interface.

func (*Uint32) SetNull

func (v *Uint32) SetNull()

func (*Uint32) SetValue

func (v *Uint32) SetValue(val uint32)

func (Uint32) String

func (v Uint32) String() string

String implements a stringer interface using fmt.Sprint for the value.

func (*Uint32) UnMarshalPartialJSON

func (v *Uint32) UnMarshalPartialJSON(l *jlexer.Lexer)

UnMarshalPartialJSON does JSON unmarshaling using partialencode interface.

func (*Uint32) UnmarshalJSON

func (v *Uint32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements a standard json unmarshaler interface.

type Uint64

type Uint64 struct {
	Value uint64
	Valid bool
	Set   bool
}

uint64 'gotemplate'-based type for providing optional semantics without using pointers.

func (*Uint64) Get

func (v *Uint64) Get() uint64

func (*Uint64) IsSet

func (v *Uint64) IsSet() bool

func (*Uint64) IsValid

func (v *Uint64) IsValid() bool

func (Uint64) MarshalJSON

func (v Uint64) MarshalJSON() ([]byte, error)

MarshalJSON implements a standard json marshaler interface.

func (Uint64) MarshalPartialJSON

func (v Uint64) MarshalPartialJSON(w *jwriter.Writer)

MarshalPartialJSON does JSON marshaling using partialencode interface.

func (*Uint64) SetNull

func (v *Uint64) SetNull()

func (*Uint64) SetValue

func (v *Uint64) SetValue(val uint64)

func (Uint64) String

func (v Uint64) String() string

String implements a stringer interface using fmt.Sprint for the value.

func (*Uint64) UnMarshalPartialJSON

func (v *Uint64) UnMarshalPartialJSON(l *jlexer.Lexer)

UnMarshalPartialJSON does JSON unmarshaling using partialencode interface.

func (*Uint64) UnmarshalJSON

func (v *Uint64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements a standard json unmarshaler interface.

type Uint8

type Uint8 struct {
	Value uint8
	Valid bool
	Set   bool
}

uint8 'gotemplate'-based type for providing optional semantics without using pointers.

func (*Uint8) Get

func (v *Uint8) Get() uint8

func (*Uint8) IsSet

func (v *Uint8) IsSet() bool

func (*Uint8) IsValid

func (v *Uint8) IsValid() bool

func (Uint8) MarshalJSON

func (v Uint8) MarshalJSON() ([]byte, error)

MarshalJSON implements a standard json marshaler interface.

func (Uint8) MarshalPartialJSON

func (v Uint8) MarshalPartialJSON(w *jwriter.Writer)

MarshalPartialJSON does JSON marshaling using partialencode interface.

func (*Uint8) SetNull

func (v *Uint8) SetNull()

func (*Uint8) SetValue

func (v *Uint8) SetValue(val uint8)

func (Uint8) String

func (v Uint8) String() string

String implements a stringer interface using fmt.Sprint for the value.

func (*Uint8) UnMarshalPartialJSON

func (v *Uint8) UnMarshalPartialJSON(l *jlexer.Lexer)

UnMarshalPartialJSON does JSON unmarshaling using partialencode interface.

func (*Uint8) UnmarshalJSON

func (v *Uint8) UnmarshalJSON(data []byte) error

UnmarshalJSON implements a standard json unmarshaler interface.

Jump to

Keyboard shortcuts

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