_go

package
v0.0.0-...-958ee23 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PathSeparator = string(os.PathSeparator)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

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

Compiler generates Go code for a supplied Schema

func NewCompiler

func NewCompiler(schema *Schema, config *Config) (*Compiler, error)

func (*Compiler) Compile

func (c *Compiler) Compile() error

type Config

type Config struct {
	BigEndian bool
	Fluent    bool
	NoGoFmt   bool

	Package string
	// By default a separate Mutable type is created for each struct
	// This flag sets that only one struct that is both read-only and mutable is generated
	Mutable       bool
	MultipleFiles bool
	Output        string
}

Config provides configuration for the Compiler

Directories

Path Synopsis
Package protowire parses and formats the raw wire encoding.
Package protowire parses and formats the raw wire encoding.

Jump to

Keyboard shortcuts

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