Documentation ¶ Index ¶ Variables type OptFloat func Float(val float64) OptFloat func (f OptFloat) IsEmpty() bool func (f OptFloat) IsSet() bool func (f OptFloat) Val() float64 type OptInt func Int(val int) OptInt func (i OptInt) IsEmpty() bool func (i OptInt) IsSet() bool func (i OptInt) Val() int Constants ¶ This section is empty. Variables ¶ View Source var EmptyFloat = OptFloat{} View Source var EmptyInt = OptInt{} Functions ¶ This section is empty. Types ¶ type OptFloat ¶ type OptFloat struct { // contains filtered or unexported fields } func Float ¶ func Float(val float64) OptFloat func (OptFloat) IsEmpty ¶ func (f OptFloat) IsEmpty() bool func (OptFloat) IsSet ¶ func (f OptFloat) IsSet() bool func (OptFloat) Val ¶ func (f OptFloat) Val() float64 type OptInt ¶ type OptInt struct { // contains filtered or unexported fields } func Int ¶ func Int(val int) OptInt func (OptInt) IsEmpty ¶ func (i OptInt) IsEmpty() bool func (OptInt) IsSet ¶ func (i OptInt) IsSet() bool func (OptInt) Val ¶ func (i OptInt) Val() int Source Files ¶ View all Source files option.go Click to show internal directories. Click to hide internal directories.