Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors: Printer.Printf does not define semantics #30682

Open
rogpeppe opened this issue Mar 8, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@rogpeppe
Copy link
Contributor

commented Mar 8, 2019

$ go version
go version devel +91170d7201 Thu Mar 7 15:36:29 2019 +0000 linux/amd64

The new errors.Printer interface defines a Printf method, but does not document its semantics.
This means that when implementing Printer, it's not clear what form the format string should take.

Perhaps we should document that the format and args are as documented by fmt.Printf:

// Printf writes a formatted string. The format and arguments are as defined by fmt.Printf.
Printf(format string, args ...interface{})
@andybons

This comment has been minimized.

Copy link
Member

commented Mar 9, 2019

@andybons andybons modified the milestones: Go1.13, Go1.14 Jul 8, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.