From 15e9093eb11d4e6c902f873bf1c04bd10cc77e79 Mon Sep 17 00:00:00 2001 From: Timo Reitz Date: Thu, 2 Nov 2017 22:02:53 +0100 Subject: [PATCH] Fix typo. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 77ebb0d..3463ad3 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ name := MyTypeValue.String() // name => "MyTypeValue" ``` Sometimes you need to use some other string representation format than CamelCase (i.e. in JSON). - + To transform it from CamelCase to snake_case or kebab-case, you can use the `transform` flag. For example, the command `enumer -type=MyType -json -transform=snake` would generate the following string representation: @@ -93,7 +93,7 @@ For example, the command `enumer -type=MyType -json -transform=snake` would gene ```go name := MyTypeValue.String() // name => "my_type_value" ``` -**Note**: The transformation only works form CamelCase to sanake_case or kebab-case, not the other way around. +**Note**: The transformation only works form CamelCase to snake_case or kebab-case, not the other way around. ## How to use The usage of Enumer is the same as Stringer, so you can refer to the [Stringer docs](https://godoc.org/golang.org/x/tools/cmd/stringer)