Documentation
¶
Index ¶
- func GetRequiredTag(tag reflect.StructTag, key string) string
- func GetTag[T TagType](tag reflect.StructTag, key string, allowEmpty, required bool) T
- func GetValue[T any](sv reflect.Value, retries int) (T, bool)
- func GetValueDirection[T any](sv reflect.Value, retries int, direction NextDirection) (t T, _ bool)
- func IterStruct(v reflect.Value, fn func(reflect.Value, reflect.Type, reflect.StructField))
- func MustBeExported(sf reflect.StructField)
- func ReflectToStruct(v reflect.Value) (reflect.Value, reflect.Type)
- type API
- type Handler
- type NextDirection
- type Router
- type TagType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetValueDirection ¶
func IterStruct ¶
func MustBeExported ¶
func MustBeExported(sf reflect.StructField)
Types ¶
type NextDirection ¶
type NextDirection interface {
// contains filtered or unexported methods
}
func ReflectDown ¶
func ReflectDown() NextDirection
func ReflectUp ¶
func ReflectUp() NextDirection
Click to show internal directories.
Click to hide internal directories.