Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Assign ¶
func Assign[T any](ptr T) T
Assign assigns default values for the structure on a given pointer and returns back the pointer to allow method chaining.
It panics if an error happens.
func CanUpdate ¶
func CanUpdate(v interface{}) bool
CanUpdate returns true when the given value is an initial value of its type.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.