enums

command
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Example: enums

Demonstrates integer enums and string enums with IsValid/Values helpers generated by drel codegen. Shows that enum validation works at the Go level before a DB round-trip.

Usage:

cd examples/enums
go run ../../cmd/drel generate   # generates models/account_drel.go + db/drel_gen.go
go run .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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