mirror of
https://github.com/abice/go-enum.git
synced 2026-10-28 16:46:59 +08:00
* feat: add a noparse method to prevent the parsing function from being created. * fix: don't create an error if we don't use it * fix: move parse logic to go
25 lines
256 B
Go
25 lines
256 B
Go
//go:build example
|
|
// +build example
|
|
|
|
//go:generate ../bin/go-enum --noparse -b example --sql
|
|
|
|
package example
|
|
|
|
// ENUM(
|
|
// A,
|
|
// B,
|
|
// C
|
|
// D
|
|
// E
|
|
// ).
|
|
type UnparsedSqlValues uint8
|
|
|
|
// ENUM(
|
|
// A,
|
|
// B,
|
|
// C
|
|
// D
|
|
// E
|
|
// ).
|
|
type UnparsedSqlString string
|