generate

command
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package main provides a command-line tool for generating value objects.

This tool automates the creation of value objects based on templates and configuration files. It leverages the valueobject/generator package to perform the actual generation of code.

Usage:

go run main.go [flags]

The tool reads configuration from JSON files that specify the properties and behavior of the value objects to be generated. It then creates Go files with the appropriate code for these value objects, following the Value Object pattern from Domain-Driven Design.

This command-line tool is primarily used during development to:

  • Generate new value object types quickly and consistently
  • Ensure all value objects follow the same patterns and conventions
  • Reduce boilerplate code when creating new value objects

For more details on the configuration options and templates, see the documentation in the valueobject/generator package.

Package main provides a command-line tool for generating value objects.

Jump to

Keyboard shortcuts

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