parse

package
v0.0.0-...-ee3845c Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombineNames

func CombineNames(names []string) string

func IdentNames

func IdentNames(idents []*ast.Ident) []string

Types

type Argument

type Argument struct {
	Names []string
	Type  Type
}

func FuncArgs

func FuncArgs(params *ast.FieldList) []*Argument

func (Argument) String

func (a Argument) String() string

String returns the string representation of the argument.

type Method

type Method struct {
	Names      []string
	IsExported bool
	Type       Type
	Args       []*Argument
	Ret        []*Argument
}

func (*Method) Parse

func (m *Method) Parse(expr ast.Node)

func (*Method) String

func (m *Method) String() string

type Parser

type Parser interface {
	Val() string
}

type Struct

type Struct struct {
	Name      string
	Variables []*Argument
	Methods   []*Method
}

func (*Struct) Parse

func (s *Struct) Parse(v ast.Node)

func (*Struct) String

func (s *Struct) String() string

type Type

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

func Parse

func Parse(node ast.Node) Type

func (Type) TypeStr

func (t Type) TypeStr() string

func (Type) Val

func (t Type) Val() string

Jump to

Keyboard shortcuts

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