From 5726e0ab76e054672f556f5a0e5d0e15c2fe3af4 Mon Sep 17 00:00:00 2001 From: Paul Tyng Date: Thu, 27 Aug 2020 14:27:15 -0400 Subject: [PATCH] sort ascending --- fields/main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fields/main.go b/fields/main.go index 9652877..d3329d5 100644 --- a/fields/main.go +++ b/fields/main.go @@ -196,17 +196,17 @@ type %s struct { case structName == "Account" && name == "ip": code += "\tIP string `json:\"ip,omitempty\"`\n" continue + case structName == "SettingUsg" && strings.HasSuffix(name, "_timeout"): + field := strcase.ToCamel(name) + field = cleanName(field, fieldReps) + code += fmt.Sprintf("\t%s int `json:\"%s,omitempty\"`\n", field, name) + continue case structName == "User" && name == "blocked": code += "\tBlocked bool `json:\"blocked,omitempty\"`\n" continue case structName == "User" && name == "last_seen": code += "\tLastSeen int `json:\"last_seen,omitempty\"`\n" continue - case structName == "SettingUsg" && strings.HasSuffix(name, "_timeout"): - field := strcase.ToCamel(name) - field = cleanName(field, fieldReps) - code += fmt.Sprintf("\t%s int `json:\"%s,omitempty\"`\n", field, name) - continue } validation := fields[name]