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 GetImportPathOrDie ¶ added in v1.1.0
func GetImportPathOrDie() string
GetImportPathOrDie returns the import path of the current package. Any failure will cause the program to exit.
func GetPackageOrDie ¶ added in v1.1.0
func GetPackageOrDie() string
GetPackageOrDie returns the name of the current package. Any failure will cause the program to exit.
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.