generator

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

func New

func New() *Generator

func (*Generator) GenClient

func (g *Generator) GenClient()

func (*Generator) GenClientAPI

func (g *Generator) GenClientAPI()

func (*Generator) GenServiceInterface

func (g *Generator) GenServiceInterface(service reflect.StructField)

func (*Generator) Generate

func (g *Generator) Generate(w io.Writer) error

type PackageInfo added in v0.0.3

type PackageInfo struct {
	Types map[string]*TypeInfo // map[type_name]=>more info
}

type TypeInfo added in v0.0.3

type TypeInfo struct {
	Name         string
	Doc          string
	FieldDocs    map[string]string   // map[field_name]=>docs
	MethodDocs   map[string]string   //map[method_name]=>docs
	MethodParams map[string][]string // map[method_name]=> []string{}, ie []string{"ctx", "owner", "repo"}
}

Jump to

Keyboard shortcuts

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