printer

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2016 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fprint

func Fprint(w io.Writer, f *ast.File) error

Fprint "pretty-prints" the given AST file to the given writer. It calls Config.Fprint with its default settings.

Types

type Config

type Config struct {
	Spaces int // 0 (default) for tabs, >0 for number of spaces
}

Config controls how the printing of an AST node will behave.

func (Config) Fprint

func (c Config) Fprint(w io.Writer, f *ast.File) error

Fprint "pretty-prints" the given AST file to the given writer.

Jump to

Keyboard shortcuts

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