Skip to content

Commit 1b7c54e

Browse files
authored
Fix generation for UUID type (#60)
1 parent 20cbd1c commit 1b7c54e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generate/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ func (s *service) generateConvertCode(cmd, name, typ string) {
12911291
pn := s.pn
12921292

12931293
switch typ {
1294-
case "string":
1294+
case "string", "UUID":
12951295
pn("u.Set(\"%s\", v.(string))", name)
12961296
case "int":
12971297
pn("vv := strconv.Itoa(v.(int))")

0 commit comments

Comments
 (0)