The Go Programming Language
r/golang
Hello everyone!
go-playground/validator
is probably the most ubiquitous validation library in Go codebases. As much as it's flexible and neat, it's sometimes a PITA to iterate — I have to setup a whole new Go project¹ to just test some tags.
Hence, I made a WASM² driven online playground for the same! You can find it here:
You can find the code and more details on the GitHub repo:
1: Still waiting for a good Go REPL
2: There is an obvious drawback of loading the 6 MB WASM binary upfront over just using a HTTP server but hey, this a half-serious experiment!
About Community
Filter by flair
Related Communities
100,836 members
19,204 members
228,589 members
226,881 members
33,182 members
169,619 members
22,166 members
102,689 members
12,025 members
85,489 members
r/golang Rules
Post is not in keeping with an inclusive and friendly technical atmosphere.
Remember that people have varying communication styles and that not everyone is using their native language. (Meaning and tone can be lost in translation.)
Productive communication requires effort. Think about how your words will be interpreted. Remember that sometimes it is best to refrain entirely from commenting.
In particular, respect differences of opinion.
Interpret the arguments of others in good faith, do not seek to disagree. When we do disagree, try to understand why.
Avoid derailing: stay on topic; if you want to talk about something else, start a new conversation. Avoid unconstructive criticism: don't merely decry the current state of affairs; offer—or at least solicit—suggestions as to how things may be improved. Avoid snarking (pithy, unproductive, sniping comments) Avoid discussing potentially offensive or sensitive issues; this all too often leads to unnecessary conflict. Avoid microaggressions
What you say and do matters. Take responsibility for your words and actions, including their consequences, whether intended or otherwise.
As a part of the Go community, this subreddit and those who post on it should follow the tenets laid out in the Go Code of Conduct: https://golang.org/conduct
Treat everyone with respect and kindness. Be thoughtful in how you communicate. Don’t be destructive or inflammatory.
Posts must be of interest to Go developers and related to the Go language.
This includes: - Articles about the language itself - Announcements & articles about open source Go libraries or applications - Dev tools (open source or not) specifically targeted at Go developers
We ask that you not post about closed-source / paid software that is not specifically aimed at Go developers in particular (as opposed to all developers), even if it is written in Go.
Do not post links to or instructions on how to get pirated copies of copyrighted material.
We have a monthly "Who's Hiring?" post that will stay pinned to the top of the subreddit. To avoid too much noise from companies, please post job openings there. Please keep in mind, this is for 1st party postings only. No 3rd party recruiters.
No GPT or other AI-generated content is allowed as posts, post targets, or comments. This is only for the content itself; posts about GPT or AI related to Go are fine.