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

fmt: difference between Print and Println #14563

Closed
arnehormann opened this issue Feb 29, 2016 · 1 comment
Closed

fmt: difference between Print and Println #14563

arnehormann opened this issue Feb 29, 2016 · 1 comment

Comments

@arnehormann
Copy link
Contributor

@arnehormann arnehormann commented Feb 29, 2016

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?

go version go1.6 darwin/amd64 , also playground

  1. What operating system and processor architecture are you using (go env)?

darwin, amd64

  1. What did you do?
    (Use play.golang.org to provide a runnable example, if possible.)

http://play.golang.org/p/jlQVpXBSld

  1. What did you expect to see?

The same formatting on both lines (the one from fmt.Println).

  1. What did you see instead?

While fmt.Print omits the separator between the string and int argument, fmt.Println doesn't.

@arnehormann
Copy link
Contributor Author

@arnehormann arnehormann commented Feb 29, 2016

I should have read the docs. While confusing, it's working as intended. My bad.

@golang golang locked and limited conversation to collaborators Feb 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.