-
Notifications
You must be signed in to change notification settings - Fork 627
Closed
Description
The documentation for Color.Println says:
Spaces are always added between operands and a newline is appended.
However, this is not the case. The method uses c.wrap
around fmt.Sprint
, which has the following space separation:
Spaces are added between operands when neither is a string.
Source
Example problem:
color.New(color.FgCyan).Println("Foo", "Bar")
Expected output is "Foo Bar", real output is "FooBar".
m5x5 and emreSahin89S
Metadata
Metadata
Assignees
Labels
No labels