output

package
v0.0.0-...-e03b1fb Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(fileName, output string) error

func BuildCommand

func BuildCommand(fileName, output string) *exec.Cmd

func CreateTemp

func CreateTemp(prefix string) (*os.File, error)

func ExecutableExt

func ExecutableExt() (ext string)

func Run

func Run(fileName string) error

func RunCommand

func RunCommand(fileName string) *exec.Cmd

func WithTempDir

func WithTempDir(prefix string, cb func(path string) error) error

func WithTempFile

func WithTempFile(prefix string, cb func(file *os.File) error) error

Types

type Printer

type Printer struct {
	// contains filtered or unexported fields
}

func NewPrinter

func NewPrinter(config *printer.Config) Printer

func (Printer) PrintFile

func (p Printer) PrintFile(w io.Writer, fset *token.FileSet, file *ast.File) error

Jump to

Keyboard shortcuts

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