reflect

package
v0.0.0-...-881cb2f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToInterface

func ToInterface(v reflect.Value) interface{}

Types

type Map

type Map map[string]any

func (Map) Any

func (m Map) Any(key string) any

func (Map) Array

func (m Map) Array(key string) []any

func (Map) Bool

func (m Map) Bool(key string) bool

func (Map) Complex

func (m Map) Complex(key string) complex128

func (Map) Exist

func (m Map) Exist(key string) bool

func (Map) Float

func (m Map) Float(key string) float64

func (Map) Int

func (m Map) Int(key string) int64

func (Map) JSON

func (m Map) JSON(key string) string

func (Map) JSONb

func (m Map) JSONb(key string) []byte

func (Map) Map

func (m Map) Map(key string) Map

func (Map) MapArray

func (m Map) MapArray(key string) []Map

func (Map) String

func (m Map) String(key string, args ...any) string

func (Map) ToJSON

func (m Map) ToJSON() string

func (Map) ToJSONb

func (m Map) ToJSONb() []byte

func (Map) Uint

func (m Map) Uint(key string) uint64

type Struct

type Struct struct {
	Name   string
	DbName string
	Type   reflect.Kind
	Tag    reflect.StructTag
	Fields []Struct
}

func Parse

func Parse(v reflect.Type) *Struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL