Documentation ¶
Index ¶
- func IsNil(v any) bool
- func ToString(v any) string
- func ToStringE(v any) (string, error)
- func ToStringSlicePreserveString(v any) []string
- func ToStringSlicePreserveStringE(v any) ([]string, error)
- func TypeToString(v any) (string, bool)
- func Unwrapv(v any) any
- type DevMarker
- type KeyValueStr
- type KeyValues
- type LowHigh
- type RLocker
- type Unwrapper
- type Zeroer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToStringSlicePreserveString ¶
ToStringSlicePreserveString is the same as ToStringSlicePreserveStringE, but it never fails.
func ToStringSlicePreserveStringE ¶
ToStringSlicePreserveStringE converts v to a string slice. If v is a string, it will be wrapped in a string slice.
func TypeToString ¶
TypeToString converts v to a string if it's a valid string type. Note that this will not try to convert numeric values etc., use ToString for that.
Types ¶
type DevMarker ¶
type DevMarker interface {
DevOnly()
}
DevMarker is a marker interface for types that should only be used during development.
type KeyValueStr ¶
KeyValueStr is a string tuple.
type KeyValues ¶
KeyValues holds an key and a slice of values.
type RLocker ¶
type RLocker interface { RLock() RUnlock() }
RLocker represents the read locks in sync.RWMutex.
Click to show internal directories.
Click to hide internal directories.