types

package
v6.30.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilteredString

type FilteredString struct {
	IsSet bool
	Value string
}

FilteredString is a wrapper around string values that can be null/default or an actual value. Use IsSet to check if the value is provided, instead of checking against the empty string.

func (*FilteredString) ParseValue

func (n *FilteredString) ParseValue(val string)

ParseValue is used to parse a user provided flag argument.

type NullInt

type NullInt struct {
	IsSet bool
	Value int
}

NullInt is a wrapper around integer values that can be null or an integer. Use IsSet to check if the value is provided, instead of checking against 0.

func (*NullInt) ParseFlagValue

func (n *NullInt) ParseFlagValue(val string) error

ParseFlagValue is used to parse a user provided flag argument.

func (*NullInt) UnmarshalJSON

func (n *NullInt) UnmarshalJSON(rawJSON []byte) error

type NullUint64

type NullUint64 struct {
	IsSet bool
	Value uint64
}

NullUint64 is a wrapper around uint64 values that can be null or an unint64. Use IsSet to check if the value is provided, instead of checking against 0.

func (*NullUint64) ParseFlagValue

func (n *NullUint64) ParseFlagValue(val string) error

ParseFlagValue is used to parse a user provided flag argument.

func (*NullUint64) UnmarshalJSON

func (n *NullUint64) UnmarshalJSON(rawJSON []byte) error

Jump to

Keyboard shortcuts

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