gofunc

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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 ExecCmd

func ExecCmd(cmd *exec.Cmd)

func ExitIf

func ExitIf(err error)

func GetModName

func GetModName() string

func Getmd

func Getmd() string

func Getwd

func Getwd(args []string) string

func LoadTemplates

func LoadTemplates() error

Types

type FunctionVars

type FunctionVars struct {
	Name       string
	Reference  string
	ConfigPath string
	ImportPath string
}

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

Jump to

Keyboard shortcuts

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