Documentation
¶
Index ¶
- func ClearTempDir()
- func CopyRef[T any](value T) *T
- func ElementType(initial reflect.Type) (et reflect.Type)
- func MustGetTempDir() string
- func NilOr[T comparable](value *T, expected T) bool
- func NotNilAnd[T comparable](value *T, expected T) bool
- func TempDir() (string, error)
- func UnpackValue(value reflect.Value) (v reflect.Value, isNil bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearTempDir ¶
func ClearTempDir()
ClearTempDir removes the temporary directory (if present) and resets the state. This is not safe for concurrent use and is meant for cleanup in unit tests only.
func ElementType ¶
ElementType returns the type after removing all reflect.Array, reflect.Chan, reflect.Map, reflect.Pointer and reflect.Slice
func MustGetTempDir ¶
func MustGetTempDir() string
MustGetTempDir returns the dir from TempDir or panics if an error occurred
func NilOr ¶
func NilOr[T comparable](value *T, expected T) bool
NilOr returns true if value is nil or expected
func NotNilAnd ¶
func NotNilAnd[T comparable](value *T, expected T) bool
NotNilAnd returns true if value is not nil and expected
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.