Skip to content

Commit

Permalink
revert generator changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alishakawaguchi committed Oct 17, 2024
1 parent 9cf030d commit fd57798
Show file tree
Hide file tree
Showing 36 changed files with 37 additions and 39 deletions.
2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/gen_generate_bool.go

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

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

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

2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/gen_generate_city.go

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

2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/gen_generate_country.go

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

2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/gen_generate_email.go

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

2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/gen_generate_first_name.go

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

2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/gen_generate_float.go

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

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

2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/gen_generate_full_name.go

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

2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/gen_generate_gender.go

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

2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/gen_generate_int64.go

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

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

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

2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/gen_generate_last_name.go

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

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

2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/gen_generate_ssn.go

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

2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/gen_generate_state.go

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

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

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

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

2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/gen_generate_username.go

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

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

2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/gen_generate_zipcode.go

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

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

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

2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/gen_transform_email.go

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

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

2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/gen_transform_float.go

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

2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/gen_transform_full_name.go

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

2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/gen_transform_int64.go

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

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

2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/gen_transform_lastname.go

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

2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/gen_transform_string.go

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

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

Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ import (
"fmt"
{{ end }}
{{- if eq .HasSeedParam true}}
"github.com/nucleuscloud/neosync/worker/pkg/rng"
transformer_utils "github.com/nucleuscloud/neosync/worker/pkg/benthos/transformers/utils"
"github.com/nucleuscloud/neosync/worker/pkg/rng"
{{ end }}
)
Expand Down Expand Up @@ -247,9 +247,7 @@ func generateCode(pkgName string, funcInfo *transformers.BenthosSpec) (string, e
data.ImportFmt = true
}
}
t := template.Must(template.New("neosyncTransformerImpl").Funcs(template.FuncMap{
"capitalizeFirst": capitalizeFirst,
}).Parse(codeTemplate))
t := template.Must(template.New("neosyncTransformerImpl").Parse(codeTemplate))
var out bytes.Buffer
err := t.Execute(&out, data)
if err != nil {
Expand Down

0 comments on commit fd57798

Please sign in to comment.