Documentation
¶
Index ¶
- func CreateHandler(dir string, vars *HandlerVars) (string, error)
- func CreateProject(dir string, vars *ProjectVars) error
- func ExecCmd(cmd *exec.Cmd)
- func ExitIf(err error)
- func GetModName() string
- func Getmd() string
- func Getwd(args []string) string
- func LoadTemplates() error
- type FunctionVars
- type HandlerVars
- type ProjectVars
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHandler ¶
func CreateHandler(dir string, vars *HandlerVars) (string, error)
func CreateProject ¶
func CreateProject(dir string, vars *ProjectVars) error
func GetModName ¶
func GetModName() string
func LoadTemplates ¶
func LoadTemplates() error
Types ¶
type FunctionVars ¶
func CreateFunctionVars ¶
func CreateFunctionVars(wd string, path string) *FunctionVars
type HandlerVars ¶
type HandlerVars struct {
Functions []*FunctionVars
}
func NewHandlerVars ¶
func NewHandlerVars() *HandlerVars
type ProjectVars ¶
type ProjectVars struct {
ExecExt string
}
func NewProjectVars ¶
func NewProjectVars() *ProjectVars
Click to show internal directories.
Click to hide internal directories.