Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bias ¶
type Bias struct { Size int // Total size of value that should be scaled Scaling int // Defines how much the size is scaled. Range of values: [1, Size] }
Bias contains Size and Scaling properties which are used to scale constraint limits. Scaling factor is calculated by diving Size with Scaling
type Complex128 ¶
func Complex128Default ¶
func Complex128Default() Complex128
type Complex64 ¶
func Complex64Default ¶
func Complex64Default() Complex64
type Float32 ¶
func Float32Default ¶
func Float32Default() Float32
type Float64 ¶
func Float64Default ¶
func Float64Default() Float64
type Int ¶
Int constraints
func IntDefault ¶
func IntDefault() Int
IntDefault returns default int constraints. Underlying architecture defines whether int is int32 or int64 and because of that default min and max constraint values are different.
Spec definition: https://golang.org/ref/spec#Numeric_types
- For 32bit architecture Int{Min: math.MinInt32, Max: math.MaxInt32}
- For 64bit architecture Int{Min: math.MinInt64, Max: math.MaxInt64}
type Int16 ¶
func Int16Default ¶
func Int16Default() Int16
type Int32 ¶
func Int32Default ¶
func Int32Default() Int32
type Int64 ¶
func Int64Default ¶
func Int64Default() Int64
type Length ¶
func LengthDefault ¶
func LengthDefault() Length
type Ptr ¶ added in v0.4.0
type Ptr struct {
NilFrequency uint64
}
func PtrDefault ¶ added in v0.4.0
func PtrDefault() Ptr
type Rune ¶
func RuneDefault ¶
func RuneDefault() Rune
type String ¶
func StringDefault ¶
func StringDefault() String
type Uint16 ¶
func Uint16Default ¶
func Uint16Default() Uint16
type Uint32 ¶
func Uint32Default ¶
func Uint32Default() Uint32
type Uint64 ¶
func Uint64Default ¶
func Uint64Default() Uint64
Click to show internal directories.
Click to hide internal directories.