{"modulePath":"github.com/sqlatlas/gui","version":"v6.1.6+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package null\n\n## Types\n\n```go\ntype Float struct {\n\tsql.NullFloat64\n}\n```\nFloat is a nullable float64. It does not consider zero values to be null. It will decode to null, not zero, if null.\n\n```go\nfunc FloatFrom(f float64) Float\n```\nFloatFrom creates a new Float that will always be valid.\n\n```go\nfunc FloatFromPtr(f *float64) Float\n```\nFloatFromPtr creates a new Float that be null if f is nil.\n\n```go\nfunc NewFloat(f float64, valid bool) Float\n```\nNewFloat creates a new Float\n\n```go\nfunc (f Float) FullString() string\n```\nFullString returns float as string in full precision\n\n```go\nfunc (f Float) IsZero() bool\n```\nIsZero returns true for invalid Floats, for future omitempty support (Go 1.4?) A non-null Float with a 0 value will not be considered zero.\n\n```go\nfunc (f Float) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements json.Marshaler. It will encode null if this Float is null.\n\n```go\nfunc (f Float) MarshalText() ([]byte, error)\n```\nMarshalText implements encoding.TextMarshaler. It will encode a blank string if this Float is null.\n\n```go\nfunc (f Float) Ptr() *float64\n```\nPtr returns a pointer to this Float's value, or a nil pointer if this Float is null.\n\n```go\nfunc (f *Float) SetValid(n float64)\n```\nSetValid changes this Float's value and also sets it to be non-null.\n\n```go\nfunc (f Float) String() string\n```\nMarshalText implements encoding.TextMarshaler. It will encode a blank string if this Float is null.\n\n```go\nfunc (f *Float) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements json.Unmarshaler. It supports number and null input. 0 will not be considered a null Float. It also supports unmarshalling a sql.NullFloat64.\n\n```go\nfunc (f *Float) UnmarshalText(text []byte) error\n```\nUnmarshalText implements encoding.TextUnmarshaler. It will unmarshal to a null Float if the input is a blank or not an integer. It will return an error if the input is not an integer, blank, or \"null\".\n\n","path":"github.com/sqlatlas/gui/pkg/components/null","name":"null","synopsis":"","isRedistributable":true}
