Skip to content

Commit

Permalink
rename error from _XXXErrNilPtr to errXXXNilPtr. (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
omegaatt36 authored Sep 24, 2022
1 parent 8bf8c2d commit 58e3ed8
Show file tree
Hide file tree
Showing 15 changed files with 704 additions and 704 deletions.
16 changes: 8 additions & 8 deletions _example/sql_enum.go

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

16 changes: 8 additions & 8 deletions _example/sql_int_enum.go

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

16 changes: 8 additions & 8 deletions _example/sql_str_enum.go

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

6 changes: 3 additions & 3 deletions _example/strings_only_enum.go

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

16 changes: 8 additions & 8 deletions generator/.snapshots/Test118CustomPrefixExampleFile-1.18
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
(string) (len=11) "\treturn nil",
(string) (len=1) "}",
(string) "",
(string) (len=97) "var _ChangeTypeErrNilPtr = errors.New(\"value pointer is nil\") // one per type for package clashes",
(string) (len=96) "var errChangeTypeNilPtr = errors.New(\"value pointer is nil\") // one per type for package clashes",
(string) "",
(string) (len=41) "// Scan implements the Scanner interface.",
(string) (len=58) "func (x *ChangeType) Scan(value interface{}) (err error) {",
Expand Down Expand Up @@ -115,7 +115,7 @@
(string) (len=20) "\t\t*x = ChangeType(v)",
(string) (len=18) "\tcase *ChangeType:",
(string) (len=15) "\t\tif v == nil {",
(string) (len=30) "\t\t\treturn _ChangeTypeErrNilPtr",
(string) (len=29) "\t\t\treturn errChangeTypeNilPtr",
(string) (len=3) "\t\t}",
(string) (len=9) "\t\t*x = *v",
(string) (len=11) "\tcase uint:",
Expand All @@ -124,34 +124,34 @@
(string) (len=20) "\t\t*x = ChangeType(v)",
(string) (len=11) "\tcase *int:",
(string) (len=15) "\t\tif v == nil {",
(string) (len=30) "\t\t\treturn _ChangeTypeErrNilPtr",
(string) (len=29) "\t\t\treturn errChangeTypeNilPtr",
(string) (len=3) "\t\t}",
(string) (len=21) "\t\t*x = ChangeType(*v)",
(string) (len=13) "\tcase *int64:",
(string) (len=15) "\t\tif v == nil {",
(string) (len=30) "\t\t\treturn _ChangeTypeErrNilPtr",
(string) (len=29) "\t\t\treturn errChangeTypeNilPtr",
(string) (len=3) "\t\t}",
(string) (len=21) "\t\t*x = ChangeType(*v)",
(string) (len=72) "\tcase float64: // json marshals everything as a float64 if it's a number",
(string) (len=20) "\t\t*x = ChangeType(v)",
(string) (len=73) "\tcase *float64: // json marshals everything as a float64 if it's a number",
(string) (len=15) "\t\tif v == nil {",
(string) (len=30) "\t\t\treturn _ChangeTypeErrNilPtr",
(string) (len=29) "\t\t\treturn errChangeTypeNilPtr",
(string) (len=3) "\t\t}",
(string) (len=21) "\t\t*x = ChangeType(*v)",
(string) (len=12) "\tcase *uint:",
(string) (len=15) "\t\tif v == nil {",
(string) (len=30) "\t\t\treturn _ChangeTypeErrNilPtr",
(string) (len=29) "\t\t\treturn errChangeTypeNilPtr",
(string) (len=3) "\t\t}",
(string) (len=21) "\t\t*x = ChangeType(*v)",
(string) (len=14) "\tcase *uint64:",
(string) (len=15) "\t\tif v == nil {",
(string) (len=30) "\t\t\treturn _ChangeTypeErrNilPtr",
(string) (len=29) "\t\t\treturn errChangeTypeNilPtr",
(string) (len=3) "\t\t}",
(string) (len=21) "\t\t*x = ChangeType(*v)",
(string) (len=14) "\tcase *string:",
(string) (len=15) "\t\tif v == nil {",
(string) (len=30) "\t\t\treturn _ChangeTypeErrNilPtr",
(string) (len=29) "\t\t\treturn errChangeTypeNilPtr",
(string) (len=3) "\t\t}",
(string) (len=31) "\t\t*x, err = ParseChangeType(*v)",
(string) (len=17) "\t\tif err != nil {",
Expand Down
Loading

0 comments on commit 58e3ed8

Please sign in to comment.