Documentation
¶
Overview ¶
Package main provides a command-line interface to generate code based on templates.
This package is responsible for generating code based on templates. It uses the following packages to fulfill its task:
- github.com/emiliogrv/errors/internal/template: To embed the default templates into the binary.
The command-line interface is divided into two main parts:
- The first part is used to specify the output directory and the package name.
- The second part is used to specify the formats to generate.
The formats can be either specified as a comma-separated list of formats, or the special value "all" to generate all formats.
The generator will generate code for the main file, and test file, based on the formats specified.
The generator will also generate code for the format specific files, if a user template is specified.
Click to show internal directories.
Click to hide internal directories.