diff --git a/config.go b/config.go index 50d88d5..909df84 100644 --- a/config.go +++ b/config.go @@ -79,7 +79,7 @@ func initConfig() (config, error) { switch *tagFormat { case formatAsIs, formatSnakeCase, formatCamelCase, formatPascalCase: default: - return config{}, fmt.Errorf("invalid tag_format %s", *format) + return config{}, fmt.Errorf("invalid tag_format %s", *tagFormat) } conf := config{} diff --git a/genutil.go b/genutil.go index d7bcc60..e9456cc 100644 --- a/genutil.go +++ b/genutil.go @@ -11,11 +11,11 @@ import ( ) const ( - templateName = "output.tpl" + templateName = "output.tmpl" ) var ( - //go:embed output.tpl + //go:embed output.tmpl templatesFS embed.FS ) diff --git a/output.tpl b/output.tmpl similarity index 100% rename from output.tpl rename to output.tmpl