package
0.0.0-20160615074141-d26491060c03
Repository: https://github.com/phillp/goa.git
Documentation: pkg.go.dev
# Functions
Add adds two integers and returns the sum of the two.
BuiltInTypeName returns the name of the goa struct corresponding to the media type definition or the empty string if there isn't one.
CanonicalParams returns the list of parameter names needed to build the canonical href to the resource.
CanonicalTemplate returns the resource URI template as a format string suitable for use in the fmt.Printf function family.
CommandLine return the command used to run this process.
Comment produces line comments by concatenating the given strings and producing 80 characters long lines starting with "//".
Goify makes a valid Go identifier out of any string.
GoNativeType returns the Go built-in type from which instances of t can be initialized.
GoTypeDef returns the Go code that defines a Go type which matches the data structure definition (the part that comes after `type foo`).
GoTypeDesc returns the description of a type.
GoTypeName returns the Go type name for a data type.
GoTypeRef returns the Go code that refers to the Go type which matches the given data type (the part that comes after `var foo`) required only applies when referring to a user type that is an object defined inline.
GoTypeTransform produces Go code that initializes the data structure defined by target from an instance of the data structure described by source.
GoTypeTransformName generates a valid Go identifer that is adequate for naming the type transform function that creates an instance of the data structure described by target from an instance of the data strucuture described by source.
Indent inserts prefix at the beginning of each non-empty line of s.
IndentBytes inserts prefix at the beginning of each non-empty line of b.
NewImport creates an import spec.
NewWorkspace returns a newly created temporary Go workspace.
PackageFor returns the package for the given source file.
PackageName returns the name of a package at the given path.
PackagePath returns the Go package path for the directory that lives under the given absolute file path.
PackageSourcePath returns the absolute path to the given package source.
Publicizer publicizes a single attribute based on the type.
RecursiveChecker produces Go code that runs the validation checks recursively over the given attribute.
RecursiveFinalizer produces Go code that sets the default values for fields recursively for the given attribute.
RecursivePublicizer produces code that copies fields from the private struct to the public struct.
RunTemplate executs the given template with the given input and returns the rendered string.
SimpleImport creates an import with no explicit path component.
SnakeCase produces the snake_case version of the given CamelCase string.
SourceFileFor returns a SourceFile for the file at the given path.
Tabs returns a string made of depth tab characters.
Tempvar generates a unique variable name.
ValidationChecker produces Go code that runs the validation defined in the given attribute definition against the content of the variable named target recursively.
WorkspaceFor returns the Go workspace for the given Go source file.
WriteTabs is a helper function that writes count tabulation characters to buf.
# Constants
TransformMapKey is the name of the metadata used to specify the key for mapping fields when generating the code that transforms one data structure into another.
Version of generator tools.
# Variables
DefaultFuncMap is the FuncMap used to initialize all source file templates.
Reserved golang keywords and package names.
TempCount holds the value appended to variable names to make them unique.
# Structs
ImportSpec defines a generated import statement.
No description provided by the author
No description provided by the author
No description provided by the author