reflector

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NATIVE_DIALECT = "golang"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Reflector

type Reflector struct {
	// Keep track of refs found during parsing.
	Schema *types.Schema
}

Reflector provides functions to build type and values from a Go value.

func NewReflector

func NewReflector() *Reflector

func (*Reflector) DeriveSchema

func (r *Reflector) DeriveSchema(x interface{}, metaKey string) *types.Schema

DeriveSchema builds a reflector list of elements from the given interface.

func (*Reflector) Reset

func (r *Reflector) Reset() *Reflector

Jump to

Keyboard shortcuts

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