-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Closed
Labels
Milestone
Description
In Go 1.1: Function fmt.Fprint(w io.Writer, a ...interface{}) returns an "int" while io.WriterTo interface returns an "int64". Consequently, a program like http://play.golang.org/p/b2tcACyfpC fails with this compile error: invalid operation: totalWritten += n (mismatched types int64 and int) I think that fmt.Fprint should be changed to return an int64 instead of an int. This may have to wait until Go 2.0 because I think this would be an API change.