Documentation
¶
Overview ¶
init initializes an existing or empty directory as a gobl project
Usage:
init <directory> <main cmd> [watchdirs...]
If directory does not exist, it will be created. If any .go file in the root of the directory has a main func, init will create the gobl.go file with a gobl() func. This should be called by the main func to enable gobl functionality. If the main cmd directory + file does not exist, they will be created. Any watchdirs will be created if they do not exist.
Example:
init myproject cmd/mycmd assets/ templates/
Click to show internal directories.
Click to hide internal directories.