printer

package
v0.0.0-...-7744f4d Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintComment

func PrintComment(w io.Writer, i *Indent, c *token.Comment)

func PrintConstant

func PrintConstant(w io.Writer, i *Indent, c *ast.Constant)

func PrintDoc

func PrintDoc(w io.Writer, i *Indent, d string)

func PrintEnum

func PrintEnum(w io.Writer, indent *Indent, e *ast.Enum)

func PrintField

func PrintField(w io.Writer, i *Indent, f *ast.Field)

func PrintInclude

func PrintInclude(w io.Writer, i *Indent, include *ast.Include)

func PrintNamespace

func PrintNamespace(w io.Writer, i *Indent, n *ast.Namespace)

func PrintService

func PrintService(w io.Writer, i *Indent, s *ast.Service)

func PrintStruct

func PrintStruct(w io.Writer, i *Indent, s *ast.Struct)

Types

type Indent

type Indent int

func NewIndent

func NewIndent(base int) *Indent

func (*Indent) Decrement

func (i *Indent) Decrement()

func (*Indent) Increment

func (i *Indent) Increment()

func (*Indent) String

func (i *Indent) String() string

Jump to

Keyboard shortcuts

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