gogenx

package
v1.1.19 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comments added in v1.1.14

type Comments string

func (Comments) String added in v1.1.14

func (c Comments) String() string

type GoFileBuf

type GoFileBuf struct {
	Opts GoOption
	// contains filtered or unexported fields
}

func NewGoFileBuf

func NewGoFileBuf(opts GoOption) *GoFileBuf

func (*GoFileBuf) Apply

func (g *GoFileBuf) Apply(w io.Writer) error

func (*GoFileBuf) ImportStatement

func (g *GoFileBuf) ImportStatement() string

func (*GoFileBuf) ImportStatementItems

func (g *GoFileBuf) ImportStatementItems() []string

func (*GoFileBuf) P added in v1.1.14

func (g *GoFileBuf) P(v ...any)

func (*GoFileBuf) Pf added in v1.1.14

func (g *GoFileBuf) Pf(format string, v ...any)

func (*GoFileBuf) QualifiedGoIdent

func (g *GoFileBuf) QualifiedGoIdent(ident GoIdent) string

func (*GoFileBuf) Write added in v1.1.14

func (g *GoFileBuf) Write(p []byte) (n int, err error)

type GoIdent

type GoIdent struct {
	GoImportPath GoImportPath
	Name         string
}

type GoImportPath

type GoImportPath string

func (GoImportPath) Ident

func (m GoImportPath) Ident(name string) GoIdent

type GoOption

type GoOption struct {
	GenFileSuffix     string
	GenFileImportPath GoImportPath
}

type GoPackageName

type GoPackageName string

Jump to

Keyboard shortcuts

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