Skip to content

Commit

Permalink
Merge pull request #54 from FreekingDean/bugfix/fix-time-added-to-eve…
Browse files Browse the repository at this point in the history
…rything

Bugfix/fix time added to everything
  • Loading branch information
bernerdschaefer authored Mar 11, 2020
2 parents b5e8ba7 + 2a72c89 commit 05b3298
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion templates/imports.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@
{{end}}
)
{{end}}
{{end}}
{{end}}

var _ = time.Second
7 changes: 5 additions & 2 deletions templates/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ var templates = map[string]string{"field.tmpl": `{{initialCap .Name}} {{.Type}}
{{end}}
}
{{end}}
`,
"imports.tmpl": `{{if .}}
{{if len . | eq 1}}
Expand All @@ -37,7 +36,10 @@ var templates = map[string]string{"field.tmpl": `{{initialCap .Name}} {{.Type}}
{{end}}
)
{{end}}
{{end}}`,
{{end}}
var _ = time.Second
`,
"package.tmpl": `// Generated service client for {{.}} API.
//
// To be able to interact with this API, you have to
Expand Down Expand Up @@ -263,3 +265,4 @@ func Parse(t *template.Template) (*template.Template, error) {
}
return t, nil
}

0 comments on commit 05b3298

Please sign in to comment.