errors_generator

command
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: BSD-3-Clause Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

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