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

encoding/json: use the words "pretty print" in MarshalIndent doc comment #6491

Closed
gopherbot opened this issue Sep 26, 2013 · 2 comments

Comments

Projects
None yet
3 participants
@gopherbot
Copy link

commented Sep 26, 2013

by feedback.test.account:

https://feedback.corp.google.com/#/Report/1340524074

Description:
This function (MarshalIndent) can be used to achieve JSON "pretty-printing". 
I ended up asking on stackoverflow.com
(http://stackoverflow.com/questions/19038598/golang-pretty-print-json) in order to find
this method because I was thinking I'd find it from that keyword ("pretty
print").  Suggest adding the following text: 

This function provides the equivalent of JSON "pretty-printing".  Example:

b, _ := json.MarshalIndent(m, "", "    ")


Description translated:
This function (Marshal Indent) can be used to achieve JSON "pretty-printing". 
I ended up asking on stackoverflow.com
(http://stackoverflow.com/questions/19038598/golang-pretty-print-json) in order to find
this method because I was thinking I'd find it from that keyword ("pretty
print").  Suggest adding the following text: 

This function provides the equivalent of JSON "pretty-printing".  Example:

b, _ := json.MarshalIndent(m, "", "    ")


UI language: en
Detected language: en
@adg

This comment has been minimized.

Copy link
Contributor

commented Sep 27, 2013

Comment 1:

I guess we could say "pretty print" somewhere.

Labels changed: added documentation, removed restrict-view-owner.

Status changed to Accepted.

@robpike

This comment has been minimized.

Copy link
Contributor

commented Nov 12, 2013

Comment 2:

We don't need to list such obvious uses for things.

Status changed to WontFix.

@golang golang locked and limited conversation to collaborators Jun 25, 2016

This issue was closed.

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