From c13f0633c3dc5bc98526bc2b398a153135d92fb1 Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Sat, 7 Jan 2023 14:42:57 -0800 Subject: [PATCH] Add special cases for 'jwt' and 'crud' --- cmd/gen/parser/struct.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/gen/parser/struct.go b/cmd/gen/parser/struct.go index 9305681..d9469d5 100644 --- a/cmd/gen/parser/struct.go +++ b/cmd/gen/parser/struct.go @@ -242,6 +242,10 @@ func TransformNameGo(s string) string { out += "URL" case "nsfw": out += "NSFW" + case "jwt": + out += "JWT" + case "crud": + out += "CRUD" default: if len(segment) == 0 { continue