From 074b95bab85631fb08140a76cf9e89f485b46d62 Mon Sep 17 00:00:00 2001 From: Menno Date: Sun, 17 Oct 2021 14:32:13 +0200 Subject: [PATCH] add documentation for alternative string values flag --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7f5e78e..b9fafb8 100644 --- a/README.md +++ b/README.md @@ -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). +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 - [Álvaro López Espinosa](https://github.com/alvaroloes/enumer)