printer

package
v0.0.0-...-85e4542 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Zero    Mode = 0
	Marshal      = 1 << iota // Generate MarshalMsg and UnmarshalMsg
	Encode                   // Generate EncodeMsg and DecodeMsg
	Test                     // Generate tests and benchmarks

	All = Marshal | Encode | Test // Generate everything
)

Variables

This section is empty.

Functions

func PrintFile

func PrintFile(file string, pkg string, els []gen.Elem, mode Mode) error

PrintFile prints the methods for the provided list of elements to the given file name and canonical package path.

Types

type Mode

type Mode uint32

Mode determines what code is printed for each element.

Jump to

Keyboard shortcuts

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