gocode

package
v0.0.0-...-3948e75 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: BSD-3-Clause Imports: 7 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 {
	print.Buffer
}

func NewGenerator

func NewGenerator() Generator

func (*Generator) ByteArrayValue

func (g *Generator) ByteArrayValue(b []byte)

func (*Generator) CodeGenerationWarning

func (g *Generator) CodeGenerationWarning(by string)

func (*Generator) CodeGenerationWarningSelf

func (g *Generator) CodeGenerationWarningSelf()

func (*Generator) Comment

func (g *Generator) Comment(lines ...string)

Comment writes comment lines prefixed with "// ".

func (*Generator) Commentf

func (g *Generator) Commentf(format string, args ...interface{})

func (*Generator) EnterBlock

func (g *Generator) EnterBlock()

func (*Generator) Formatted

func (g *Generator) Formatted() ([]byte, error)

func (*Generator) Function

func (g *Generator) Function(name string, s *types.Signature)

func (*Generator) Import

func (g *Generator) Import(pkgs ...string)

func (*Generator) LeaveBlock

func (g *Generator) LeaveBlock()

func (*Generator) Package

func (g *Generator) Package(name string)

Jump to

Keyboard shortcuts

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