{"modulePath":"github.com/GoPlugin/pluginV2","version":"v0.5.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package null\n\n## Types\n\n```go\ntype Int64 struct {\n\tInt64 int64\n\tValid bool\n}\n```\nInt64 encapsulates the value and validity (not null) of a int64 value, to differentiate nil from 0 in json and sql.\n\n```go\nfunc Int64From(i int64) Int64\n```\nInt64From creates a new Int64 that will always be valid.\n\n```go\nfunc NewInt64(i int64, valid bool) Int64\n```\nNewInt64 returns an instance of Int64 with the passed parameters.\n\n```go\nfunc (i Int64) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements json.Marshaler. It will encode null if this Int64 is null.\n\n```go\nfunc (i Int64) MarshalText() ([]byte, error)\n```\nMarshalText implements encoding.TextMarshaler. It will encode a blank string if this Int64 is null.\n\n```go\nfunc (i *Int64) Scan(value interface{}) error\n```\nScan reads the database value and returns an instance.\n\n```go\nfunc (i *Int64) SetValid(n int64)\n```\nSetValid changes this Int64's value and also sets it to be non-null.\n\n```go\nfunc (i *Int64) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements json.Unmarshaler. It supports number and null input. 0 will not be considered a null Int.\n\n```go\nfunc (i *Int64) UnmarshalText(text []byte) error\n```\nUnmarshalText implements encoding.TextUnmarshaler. It will unmarshal to a null Int64 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```go\nfunc (i Int64) Value() (driver.Value, error)\n```\nValue returns this instance serialized for database storage.\n\n```go\ntype Uint32 struct {\n\tUint32 uint32\n\tValid  bool\n}\n```\nUint32 encapsulates the value and validity (not null) of a uint32 value, to differentiate nil from 0 in json and sql.\n\n```go\nfunc NewUint32(i uint32, valid bool) Uint32\n```\nNewUint32 returns an instance of Uint32 with the passed parameters.\n\n```go\nfunc Uint32From(i uint32) Uint32\n```\nUint32From creates a new Uint32 that will always be valid.\n\n```go\nfunc (i Uint32) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements json.Marshaler. It will encode null if this Uint32 is null.\n\n```go\nfunc (i Uint32) MarshalText() ([]byte, error)\n```\nMarshalText implements encoding.TextMarshaler. It will encode a blank string if this Uint32 is null.\n\n```go\nfunc (i *Uint32) Scan(value interface{}) error\n```\nScan reads the database value and returns an instance.\n\n```go\nfunc (i *Uint32) SetValid(n uint32)\n```\nSetValid changes this Uint32's value and also sets it to be non-null.\n\n```go\nfunc (i *Uint32) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements json.Unmarshaler. It supports number and null input. 0 will not be considered a null Int.\n\n```go\nfunc (i *Uint32) UnmarshalText(text []byte) error\n```\nUnmarshalText implements encoding.TextUnmarshaler. It will unmarshal to a null Uint32 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```go\nfunc (i Uint32) Value() (driver.Value, error)\n```\nValue returns this instance serialized for database storage.\n\n","path":"github.com/GoPlugin/pluginV2/core/null","name":"null","synopsis":"","isRedistributable":true}
