lib

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: CC0-1.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug bool

Functions

func ContainsStr

func ContainsStr(strings []string, needle string) bool

func Run

func Run(dir string, mod string)

func WriteFile

func WriteFile(fp string, b []byte)

Types

type CodeFile

type CodeFile struct {
	Package    string
	Path       string
	Name       string
	Structs    []*Struct
	Methods    []*Method
	Interfaces []*Interface
	Imports    map[string]string
}

func NewCodeFile

func NewCodeFile(f *ast.File, path string) *CodeFile

type Di

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

type Field

type Field struct {
	Struct *Struct
	Name   string
	Type   string
	Tag    string
}

type Function

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

type Interface

type Interface struct {
	File    *CodeFile
	Name    string
	Methods []*Method
}

type Method

type Method struct {
	File     *CodeFile
	Name     string
	Params   []*Type
	Results  []*Type
	Reciever *Type
}

type Package

type Package struct {
	Structs    []*Struct
	Interfaces []*Interface
	Methods    []*Method
	Imports    []string
	Fns        map[string]Function
	Vars       []string
	Shared     map[string]string
	// contains filtered or unexported fields
}

type ParseVisitor

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

func (ParseVisitor) Visit

func (v ParseVisitor) Visit(n ast.Node) ast.Visitor

type Struct

type Struct struct {
	Name   string
	File   *CodeFile
	Fields []*Field
}

type Type

type Type struct {
	Name string
	T    string
}

Jump to

Keyboard shortcuts

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