gen

package
v0.0.0-...-b75375f Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2014 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package gen does code generation to automate tedious tasks.

Although you can use this package and its subpackages directly, that's not recommended. Instead, you should create a genfile.yaml for your package and use the gondola gen command to perform the code generation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gen

func Gen(pkgName string, config string) error

Gen generates code according to the given config file. If the config file can't be found or it can't be parsed, an error will be returned. Previously autogenerated files will be overwritten, but trying to overwrite any files which were not autogenerated will also return an error. See the package documentation for the format of the config file.

Types

This section is empty.

Directories

Path Synopsis
Package genutil contains helper functions for autogenerating code.
Package genutil contains helper functions for autogenerating code.
Package json generates methods for encoding/decoding types to/from JSON.
Package json generates methods for encoding/decoding types to/from JSON.
Package strings generates the String() method for enumeration types.
Package strings generates the String() method for enumeration types.

Jump to

Keyboard shortcuts

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