gomarshal

package
v0.0.0-...-6cf66fa Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0, MIT Imports: 13 Imported by: 3

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, outTestUnconditional, pkg 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