gmg

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GMG added in v0.7.0

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

func NewGMG added in v0.7.0

func NewGMG(log *zap.SugaredLogger) *GMG

func (*GMG) Files added in v0.7.0

func (g *GMG) Files() []*gogen.File

func (*GMG) GenerateFile added in v0.7.0

func (g *GMG) GenerateFile(p GenerateFileParams)

type GenerateFileParams added in v0.7.0

type GenerateFileParams struct {
	FilePath    string
	ImportPath  string
	PackageName string
	Interfaces  []Interface
	Options     GenerateOptions
}

type GenerateOptions added in v0.7.0

type GenerateOptions struct {
}

type Interface added in v0.7.0

type Interface struct {
	Name string
	Type *types.Interface
	// ImportPath is to add interface source to generated godoc.
	ImportPath string
}

Jump to

Keyboard shortcuts

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