Skip to content

Commit

Permalink
Minor change removed timestamp field for generating sort and set field
Browse files Browse the repository at this point in the history
  • Loading branch information
Sah, Nandeshwar authored and Sah, Nandeshwar committed Jul 12, 2020
1 parent 3d3a8ac commit 59d7174
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 45 deletions.
2 changes: 1 addition & 1 deletion gofp/gofp.go
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ func findStructNamesAndFieldsGivenInGoGenerate() map[string][]string {
dataType := strings.TrimSpace(words[1])

switch dataType {
case "int", "int64", "int32", "int16", "int8", "uint", "uint64", "uint32", "uint16", "uint8", "float64", "float32", "string", "time.Time":
case "int", "int64", "int32", "int16", "int8", "uint", "uint64", "uint32", "uint16", "uint8", "float64", "float32", "string":
structFields = append(structFields, field+" "+dataType)
}
}
Expand Down
42 changes: 22 additions & 20 deletions internal/employee/fp.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 14 additions & 12 deletions internal/employer/fp.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 59d7174

Please sign in to comment.