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".
Metadata
Metadata
Assignees
Labels
No labels