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

wiki: document struct tag usage #14805

Open
nightlyone opened this issue Mar 13, 2016 · 7 comments

Comments

@nightlyone
Copy link
Contributor

commented Mar 13, 2016

Problem: Due to increased usage of Go and thus Go struct tags, clashes become inevitable.
Proposed Solution: Offer an IANA like registry for struct tags for publically available projects/libraries.

Background:

Go offers struct tags which are discoverable via reflection. These enjoy a wide range of use in the standard library in the JSON/XML and other encoding packages. The community welcomed them and build ORMs, further encodings, flag parsers and much more around them.

Since esp. while handling encodings and ORMs single sourcing data structures is beneficial for data structures.

@bradfitz

This comment has been minimized.

Copy link
Member

commented Mar 13, 2016

Seems like a new wiki page would be sufficient, at least to start.

@davecheney

This comment has been minimized.

Copy link
Contributor

commented Mar 13, 2016

If IANA want to host this more power to them, I don't think this is the
sort of thing the Go team needs to be involved in.

On Mon, 14 Mar 2016, 04:06 Brad Fitzpatrick, notifications@github.com
wrote:

Seems like a new wiki page would be sufficient, at least to start.


Reply to this email directly or view it on GitHub
#14805 (comment).

@bradfitz bradfitz modified the milestone: Unplanned Apr 9, 2016

@adg

This comment has been minimized.

Copy link
Contributor

commented Aug 15, 2016

I'm in favor of a wiki page. If someone wants to do that, please go right ahead.

@adg adg changed the title proposal: official struct tag registry wiki: document struct tag usage Aug 15, 2016

@nightlyone

This comment has been minimized.

Copy link
Contributor Author

commented Aug 16, 2016

Started the wiki page here: https://github.com/golang/go/wiki/Well-known-struct-tags and feedback and contribution is very welcome.

@adg

This comment has been minimized.

Copy link
Contributor

commented Aug 16, 2016

@nightlyone nice work. Now we just need people to add all the non-standard-library stuff.

@balanatarajan

This comment has been minimized.

Copy link

commented Jan 12, 2017

@nightlyone : Would you like help on reviewing all libraries under github and documenting them here? Is that the expectation of the issue?

@nightlyone

This comment has been minimized.

Copy link
Contributor Author

commented Jan 12, 2017

@balanatarajan yes, that is certainly the idea. But your help would be very welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.