errcodes

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package errcodes renders the error-code taxonomy (taxonomy/error-codes.yaml) into the Go ErrorCode constants and lookups and the Python ErrorCode enum and maps.

Index

Constants

View Source
const (
	// SourcePath is the taxonomy every output derives from.
	SourcePath = "taxonomy/error-codes.yaml"

	// GoPath is the rendered Go file.
	GoPath = "go/core/errors/codes.go"

	// PythonPath is the rendered Python module.
	PythonPath = "python/techai_webutils/src/techai_webutils/core/errors/codes.py"
)

The taxonomy source and the two outputs, repository-relative.

Variables

This section is empty.

Functions

func New

func New() interfaces.Generator

New returns the error-code generator.

Types

This section is empty.

Directories

Path Synopsis
cmd
errcodes command
Command errcodes renders the error-code taxonomy into its Go and Python outputs: `go generate ./go/core/errors/...` runs it from that package with -root at the repository root.
Command errcodes renders the error-code taxonomy into its Go and Python outputs: `go generate ./go/core/errors/...` runs it from that package with -root at the repository root.

Jump to

Keyboard shortcuts

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