Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnforcePtr ¶
EnforcePtr takes an interface `obj` and returns the dereferenced value if `obj` is a non-nil pointer. It returns an error if `obj` is not a pointer, is nil, or is an invalid type.
func GenerateElementBySlice ¶
GenerateElementBySlice takes a slice or a pointer to a slice as input and returns a new zero-valued element of the slice's element type. It returns an error if the input is not a slice or a pointer to a slice.
func GenerateElementPtrBySlice ¶
GenerateElementPtrBySlice takes a slice or a pointer to a slice as input and returns a pointer to a new zero-valued element of the slice's element type. It returns an error if the input is not a slice or a pointer to a slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.