Skip to content

Commit badb0e7

Browse files
authored
Fix .Causef() syntax error (shadowed fmt pkg name) (#66)
fmt.Errorf undefined (type string has no field or method Errorf)
1 parent 66c95b9 commit badb0e7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

_examples/golang-basics/example.gen.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_examples/golang-imports/api.gen.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

errors.go.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ func (e WebRPCError) WithCause(cause error) WebRPCError {
5858
return err
5959
}
6060

61-
func (e WebRPCError) WithCausef(fmt string, args ...interface{}) WebRPCError {
62-
cause := fmt.Errorf(fmt, args...)
61+
func (e WebRPCError) WithCausef(format string, args ...interface{}) WebRPCError {
62+
cause := fmt.Errorf(format, args...)
6363
err := e
6464
err.cause = cause
6565
err.Cause = cause.Error()

0 commit comments

Comments
 (0)