gengo

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
}

Generator generates go code + infrastructure specification from a saas-y Spec.

func (*Generator) CodeFormatter

func (g *Generator) CodeFormatter(path string) (st generator.SymbolTable, err error)

CodeFormatter returns the code formatter for go code.

func (*Generator) CommandPath

func (g *Generator) CommandPath() string

CommandPath returns the command path for go code.

func (*Generator) FileExtension

func (g *Generator) FileExtension() string

FileExtension returns the file extension for go code.

func (*Generator) GenerateProject

func (g *Generator) GenerateProject(name, path string) (err error)

GenerateProject creates project-specific files.

func (*Generator) GetTemplate

func (g *Generator) GetTemplate(name string) string

GetTemplate returns the named template for go code.

func (*Generator) InternalPath

func (g *Generator) InternalPath() string

InternalPath returns the package path for go code.

func (*Generator) PackagePath

func (g *Generator) PackagePath() string

PackagePath returns the package path for go code.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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