Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Underlying ¶
Underlying returns the underlying type of t (without type alias)
https://github.com/golang/go/issues/39574#issuecomment-655664772
Types ¶
type PrimitiveStringSerializer ¶
type PrimitiveStringSerializer struct{}
PrimitiveStringSerializer is used to serialize primitive types (and a few more) from and to string This is not really intended to be user facing, and more as a simple building block for other mechanisms supports:
- golang primitives (ints, uints, floats, bool, string)
- type aliases
- time.Time
- primitive.ObjectID
func (PrimitiveStringSerializer) ValueFromString ¶
func (PrimitiveStringSerializer) ValueToString ¶
func (pss PrimitiveStringSerializer) ValueToString(v any) (string, error)
Click to show internal directories.
Click to hide internal directories.