Documentation
¶
Overview ¶
Package gogen contains various useful functions for creating Go source code files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetImportPath ¶
func GetImportPath() string
GetImportPath returns the importPath name - it does this by running the go list command and gathering the output
func GetPackage ¶
func GetPackage() string
GetPackage returns the package name - it does this by running the go list command and gathering the output
func MakeFileOrDie ¶
MakeFileOrDie creates the file truncating it if it already exists and returning the open file. If an error is detected, it is reported and the program exits
Types ¶
This section is empty.