gomarshal

package
v0.0.0-...-522126a Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package gomarshal implements the go_marshal code generator. See README.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

Generator drives code generation for a single invocation of the go_marshal utility.

The Generator holds arguments passed to the tool, and drives parsing, processing and code Generator for all types marked with +marshal declared in the input files.

See Generator.run() as the entry point.

func NewGenerator

func NewGenerator(srcs []string, out, outTest, pkg, declaration string, imports []string) (*Generator, error)

NewGenerator creates a new code Generator.

func (*Generator) Run

func (g *Generator) Run() error

Run is the entry point to code generation using g.

Run parses all input source files specified in g and emits generated code.

Jump to

Keyboard shortcuts

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