pkgreflect

package
v0.0.0-...-73cd16d Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: EPL-1.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPackage

func AddPackage(name string, pkg *Package)

func Generate

func Generate(name, laceName string, base, output, outputPkg string, match *Match, opts GenOptions) error

func Registry

func Registry() map[string]*Package

Types

type Arg

type Arg struct {
	Name string
	Tag  string
}

type Func

type Func struct {
	Doc  string
	Tag  string
	Args []Arg
}

type FuncValue

type FuncValue struct {
	Doc  string
	Tag  string
	Args []Arg

	Value reflect.Value
}

type GenOptions

type GenOptions struct {
	Specialized bool
	InCore      bool
}

type Match

type Match struct {
	Patterns  []string
	Directive bool
}

type Package

type Package struct {
	Name      string
	Doc       string
	Types     map[string]Type
	Functions map[string]FuncValue
	Variables map[string]Value
	Consts    map[string]Value
}

func FindPackage

func FindPackage(name string) *Package

type Type

type Type struct {
	Doc     string
	Value   reflect.Type
	Methods map[string]Func
}

type Value

type Value struct {
	Doc   string
	Value reflect.Value
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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