parser

package
v0.0.0-...-5e3efa3 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AST

type AST struct {
	// contains filtered or unexported fields
}

func NewAST

func NewAST(filename string, structNames string) *AST

func (*AST) Parser

func (t *AST) Parser() (out *Struct)

type Field

type Field struct {
	Name string
	Type string
	Tag  reflect.StructTag
}

type Func

type Func struct {
	Name string
	In   []*Param
	Out  []*Param
}

type IParser

type IParser interface {
	Parser() (out *Struct)
}

type Param

type Param struct {
	Name string
	Type string
}

type Runtime

type Runtime struct {
	// contains filtered or unexported fields
}

func NewRuntime

func NewRuntime(v interface{}) *Runtime

func (*Runtime) Parser

func (rt *Runtime) Parser() (out *Struct)

type Struct

type Struct struct {
	Receiver string
	Type     string
	Field    []*Field
	Func     []*Func
}

func (*Struct) String

func (s *Struct) String() string

Jump to

Keyboard shortcuts

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