package
1.0.0
Repository: https://github.com/patrick-batenburg/nullify.git
Documentation: pkg.go.dev

# Functions

BoolFrom creates a new Bool that will always be valid.
BoolFromPtr creates a new Bool that will be null if the value is nil.
ByteFrom creates a new Byte that will always be valid.
ByteFromPtr creates a new Byte that will be null if the value is nil.
BytesFrom creates a new Bytes that will always be valid.
BytesFromPtr creates a new Bytes that will be null if the value is nil.
Float32From creates a new Float32 that will always be valid.
Float32FromPtr creates a new Float32 that will be null if the value is nil.
Float64From creates a new Float64 that will always be valid.
Float64FromPtr creates a new Float64 that will be null if the value is nil.
From creates a new NullableImpl that is always valid.
FromPtr creates a new NullableImpl that is null if the pointer is nil.
IntFrom creates a new Int that will always be valid.
Int16FromPtr creates a new Int16 that will be null if the value is nil.
IntFrom creates a new Int that will always be valid.
Int32FromPtr creates a new Int32 that will be null if the value is nil.
IntFrom creates a new Int that will always be valid.
Int64FromPtr creates a new Int64 that will be null if the value is nil.
IntFrom creates a new Int that will always be valid.
Int8FromPtr creates a new Int8 that will be null if the value is nil.
IntFrom creates a new Int that will always be valid.
IntFromPtr creates a new Int that will be null if the value is nil.
JSONFrom creates a new JSON that will always be valid.
JSONFromPtr creates a new JSON that will be null if the value is nil.
New creates a new NullableImpl with a specified value and validity.
NewBool creates a new Bool.
NewByte creates a new Byte.
NewBytes creates a new Bytes.
NewFloat32 creates a new Float32.
NewFloat64 creates a new Float64.
NewInt creates a new Int.
NewInt creates a new Int.
NewInt creates a new Int.
NewInt creates a new Int.
NewInt creates a new Int.
NewJSON creates a new JSON.
NewMarshalError creates a new MarshalError.
NewRandomUUID creates a new random UUID.
NewScannerError creates a new ScannerError.
NewString creates a new String.
NewTime creates a new Time with RFC3339 layout.
NewInt creates a new Int.
NewInt creates a new Int.
NewInt creates a new Int.
NewInt creates a new Int.
NewInt creates a new Int.
NewUnmarshalError creates a new UnmarshalError.
NewUUID creates a new UUID.
NewValuerError creates a new ValuerError.
StringFrom creates a new String that will always be valid.
StringFromPtr creates a new String that will be null if the value is nil.
TimeFrom creates a new Time with RFC3339 layout that will always be valid.
TimeFromPtr creates a new Time with RFC3339 layout that will be null if the value is nil.
IntFrom creates a new Int that will always be valid.
Uint16FromPtr creates a new Uint16 that will be null if the value is nil.
IntFrom creates a new Int that will always be valid.
Uint32FromPtr creates a new Uint32 that will be null if the value is nil.
IntFrom creates a new Int that will always be valid.
Uint64FromPtr creates a new Uint64 that will be null if the value is nil.
IntFrom creates a new Int that will always be valid.
Uint8FromPtr creates a new Uint8 that will be null if the value is nil.
IntFrom creates a new Int that will always be valid.
UintFromPtr creates a new Uint that will be null if the value is nil.
UUIDFrom creates a new UUID that will always be valid.
UUIDFromPtr creates a new UUID that will be null if the value is nil.
WithInt16Valuer sets the valuerType to int16.
WithInt32Valuer sets the valuerType to int32.
WithInt64Valuer sets the valuerType to int64.
WithInt8Valuer sets the valuerType to int8.
WithIntegerValuer sets a custom integer type for value conversion.
WithIntValuer sets the valuerType to int.
WithTimeDefaultLayout sets the time layout to the RFC3339 format.
WithDefaultLayout returns a FormatOptionFn that sets the layout to the RFC3339 format.
WithTimeLayout sets a time layout.
WithTimeLayout returns a FormatOptionFn that sets the useTimeLayout flag to true.
WithLayoutValue returns a FormatOptionFn that sets a custom layout for formatting the time value.
WithTimeLenientParsing enables lenient time paring when json.Unmarshaler and encoding.TextUnmarshaler are called.
WithTimeLayout sets a time layout.
WithTimeStrictParsing enables strict time paring when json.Unmarshaler and encoding.TextUnmarshaler are called.
WithUint16Valuer sets the valuerType to uint16.
WithUint32Valuer sets the valuerType to uint32.
WithUint64Valuer sets the valuerType to uint64.
WithUint8Valuer sets the valuerType to uint8.
WithUintValuer sets the valuerType to uint.

# Variables

DateParsePreferMonthFirst is an option that allows preferMonthFirst to be changed from its default.
EmptyBytes is an empty byte slice.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FalseString is a string representation of false.
FalseStringBytes is a byte slice of a "false" string value.
NullString is a string representation of null.
NullStringBytes is a byte slice of a "null" string value.
TrueString is a string representation of true.
TrueStringBytes is a byte slice of a "true" string value.
ZeroBool is the zero value for the bool type.
ZeroByte is the zero value for the byte type.
ZeroBytes is the zero value for the []byte type, which is a nil byte slice.
ZeroFloat32 is the zero value for the float32 type.
ZeroFloat64 is the zero value for the float64 type.
ZeroInt is the zero value for the int type, which is at least 32 bits in size.
ZeroInt16 is the zero value for the int16 type.
ZeroInt32 is the zero value for the int32 type.
ZeroInt64 is the zero value for the int64 type.
ZeroInt8 is the zero value for the int8 type.
ZeroIntegerString is a string representation of 0.
ZeroIntegerStringBytes is a byte slice of a "0" string value.
ZeroString is the zero value for the string type.
ZeroStringBytes is a byte slice of an empty string value.
ZeroTime is the zero value for the time.Time type.
ZeroUint is the zero value for the uint type, which is at least 32 bits in size.
ZeroUint16 is the zero value for the uint16 type.
ZeroUint32 is the zero value for the uint32 type.
ZeroUint64 is the zero value for the uint64 type.
ZeroUint8 is the zero value for the uint8 type.
ZeroUUIDString is a string representation of an empty uuid with all zeros.

# Structs

Bool is a NullableImpl bool.
Byte is an NullableImpl byte.
Bytes is a NullableImpl []byte.
Float32 is a NullableImpl float32.
Float64 is a NullableImpl float64.
Int is an NullableImpl int.
Int16 is an NullableImpl int16.
Int32 is an NullableImpl int32.
Int64 is an NullableImpl int64.
Int8 is an NullableImpl int8.
JSON is a NullableImpl []byte that contains JSON.
MarshalError represents an error that occurs during marshaling.
NullableImpl represents a NullableImpl value of any type.
ScannerError represents an error that occurs during scanning.
String is a NullableImpl string.
Time is a NullableImpl time.Time.
Uint is an NullableImpl uint.
Uint16 is an NullableImpl uint16.
Uint32 is an NullableImpl uint32.
Uint64 is an NullableImpl uint64.
Uint8 is an NullableImpl uint8.
UnmarshalError represents an error that occurs during unmarshaling.
UUID is a NullableImpl uuid.UUID.
ValuerError represents an error that occurs when attempting to retrieve a value.

# Interfaces

GenericNullable is an interface that provides methods for working with nullable values.
Nullable is an interface that provides methods for working with nullable values.

# Type aliases

IntegerOption is a type alias for a function that modifies an IntegerOption.
TimeFormatOptionFn is a function type that modifies a formatOption instance.
TimeOptionFn is a type alias for a function that modifies an TimeOption.