Documentation ¶
Index ¶
- Variables
- func AnyToBytes(v any) []byte
- func AnyToString(v any) string
- func BytesToString(b []byte) string
- func New(t Type) any
- func ParseReflectValue(s string, t reflect.Type) (reflect.Value, error)
- func ReflectValueToString(v reflect.Value) string
- func StringToBytes(s string) []byte
- type Closer
- type Key
- type Type
- type Value
- type Void
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ReflectTypeError = reflect.TypeOf((*error)(nil)).Elem()
)
Functions ¶
func BytesToString ¶
BytesToString converts byte slice to string without memory allocation. See https://groups.google.com/forum/#!msg/Golang-Nuts/ENgbUzYvCuU/90yGx7GUAgAJ .
Note: it may break if string and/or slice header will change in the future go versions.
func ReflectValueToString ¶
func StringToBytes ¶
StringToBytes converts string to byte slice without memory allocation.
Note: it may break if string and/or slice header will change in the future go versions.
Types ¶
type Type ¶
type Type int
func TypeOfReflectType ¶
TypeOfReflectType returns the Type of reflect.Type t.
Click to show internal directories.
Click to hide internal directories.