We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8bbe9f commit 02356a8Copy full SHA for 02356a8
1 file changed
enumer.go
@@ -4,7 +4,7 @@ import "fmt"
4
5
// Arguments to format are:
6
// [1]: type name
7
-// [2]: error creation (either fmt.Errorf or errors.Join)
+// [2]: complete error expression
8
const stringNameToValueMethod = `// %[1]sString retrieves an enum value from the enum constants string name.
9
// Throws an error if the param is not part of the enum.
10
func %[1]sString(s string) (%[1]s, error) {
0 commit comments