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

Closed
nightlyone opened this issue Mar 13, 2016 · 8 comments
Closed

wiki: document struct tag usage #14805

nightlyone opened this issue Mar 13, 2016 · 8 comments

Comments

@nightlyone
Copy link
Contributor

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
Copy link
Contributor

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

@davecheney
Copy link
Contributor

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
Copy link
Contributor

adg 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
Copy link
Contributor Author

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

@adg
Copy link
Contributor

adg commented Aug 16, 2016

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

@balanatarajan
Copy link

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

@nightlyone
Copy link
Contributor Author

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

@seankhliao
Copy link
Member

The page exists and looks up to date, I don't think there's anything else to do here.

@golang golang locked and limited conversation to collaborators Apr 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants