Skip to content

Commit

Permalink
use interface
Browse files Browse the repository at this point in the history
  • Loading branch information
klaidliadon committed Apr 23, 2024
1 parent 5f85ec9 commit f912214
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _examples/golang-basics/example.gen.go

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

2 changes: 1 addition & 1 deletion _examples/golang-imports/api.gen.go

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

2 changes: 1 addition & 1 deletion errors.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (e WebRPCError) WithCause(cause error) WebRPCError {
return err
}

func (e WebRPCError) WithCausef(msg string, args ...any) WebRPCError {
func (e WebRPCError) WithCausef(fmt string, args ...interface{}) WebRPCError {
return e.WithCause(fmt.Errorf(msg, args...))
}

Expand Down

0 comments on commit f912214

Please sign in to comment.