add documentation for alternative string values flag

This commit is contained in:
Menno 2021-10-17 14:32:13 +02:00
parent f80c486834
commit 074b95bab8
1 changed files with 2 additions and 0 deletions

View File

@ -205,6 +205,8 @@ it is transformed). If a name doesn't have the prefix it will be passed unchange
If a prefix is provided via the `addprefix` flag, it will be added to the start of each name (after trimming and after transforming). If a prefix is provided via the `addprefix` flag, it will be added to the start of each name (after trimming and after transforming).
The boolean flag `values` will additionally create an alternative string values method `Values() []string` to fullfill the `EnumValues` interface of [ent](https://entgo.io/docs/schema-fields/#enum-fields).
## Inspiring projects ## Inspiring projects
- [Álvaro López Espinosa](https://github.com/alvaroloes/enumer) - [Álvaro López Espinosa](https://github.com/alvaroloes/enumer)