generate

package
v0.0.0-...-e0b593a Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePackage

func ParsePackage(path string)

Types

type Method

type Method struct {
	Name       string
	Parameters []*Parameter
	Results    []*Parameter
}

type Parameter

type Parameter struct {
	Name string
	Type *Type
}

type Parser

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

func (*Parser) ParseFile

func (p *Parser) ParseFile(path string)

ParseFile parses a single Go file.

type State

type State struct {
	Package string
	Types   map[string]*Type
}

type Type

type Type struct {
	Name    string
	Methods []*Method
}

type Writer

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

func NewWriter

func NewWriter(state *State, dir string) *Writer

func (*Writer) Write

func (w *Writer) Write() error

Jump to

Keyboard shortcuts

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