json

package
v3.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGenerator

func NewGenerator(options map[string]string) generator.ProgramGenerator

NewGenerator returns a generator for JSON descriptor files.

Types

type Generator

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

Generator generates JSON descriptor files.

func (*Generator) DefaultOutputDir

func (*Generator) DefaultOutputDir() string

DefaultOutputDir returns "gen-json".

func (*Generator) Generate

func (g *Generator) Generate(pf *parser.Frugal, outputDir string) error

Generate writes a type library to the output directory.

func (*Generator) GetOutputDir

func (*Generator) GetOutputDir(dir string, frugal *parser.Frugal) string

GetOutputDir returns the dir unchanged.

func (*Generator) UseVendor

func (*Generator) UseVendor() bool

UseVendor returns false.

Jump to

Keyboard shortcuts

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