You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I have a use-case where I want to use enumer to map postgres enums with the -sql flag. There may be conflicts in my enums, hence I cannot declare multiple enums in the same package.
Example:
//go:generate ...typeEnumAintconst (
TestEnumA=iotaCoolEnumA
)
//go:generate ...typeEnumBintconst (
VeryCoolEnumB=iotaCoolEnumB// this will cause issues!
)
It would be neat if we could instead declare the values as strings, e.g.:
Hi! I have a use-case where I want to use enumer to map postgres enums with the
-sql
flag. There may be conflicts in my enums, hence I cannot declare multiple enums in the same package.Example:
It would be neat if we could instead declare the values as strings, e.g.:
The text was updated successfully, but these errors were encountered: