Top 23 Go Parser Projects
A high-performance 100% compatible drop-in replacement of "encoding/json" (by json-iterator)Project mention: Some Go(lang) tips | dev.to | 2021-10-02
What to use Easyjson is about the top of the pack and it's straightforward. The downside of efficient tools is that they use code generation to create the code required to turn your structs into json to minimise allocations. This is a manual build step which is annoying. Interestingly json-iterator also uses reflection but it's significantly faster. I suspect black magic.
A shell parser, formatter, and interpreter with bash support; includes shfmt (by mvdan)Project mention: Code formatter, linters, etc. Recommendations? | reddit.com/r/bash | 2021-09-29
There is shellcheck, and shellharden which is a strict version of it. There are similar stuff here, some that also help with your editor. You can also use a docker version of shfmt. See here for a quick tutorial on shfmt.
Run Linux Software Faster and Safer than Linux with Unikernels.
One of the fastest alternative JSON parser for Go that does not require schemaProject mention: Whats the fastest JSON unmarshaling package as of right now? | reddit.com/r/golang | 2021-11-02
If you don't know the schema or you only need to access one or two fields in a much larger JSON object, I would recommend https://github.com/buger/jsonparser as it provides an easy API to access specific values without fully unmarshaling. This is an unusual use case though, 9 times out of 10 I would tend to use easyjson.
Package ini provides INI file read and write functionality in Go
A parser library for GoProject mention: Is GO a good option to write a compiler/interpreter? | reddit.com/r/golang | 2021-11-27
I made a domain specific language using https://github.com/alecthomas/participle what I found interesting is the grammar defined in structure annotations. After the parser runs, you get a fully instantiated structure based upon the input. I then invoke structure methods to do the work described in the DSL.
Parse RSS, Atom and JSON feeds in GoProject mention: Automatice el README para su perfil de GitHub con Go y GitHub Actions | dev.to | 2021-04-25
Select, put and delete data from JSON, TOML, YAML, XML and CSV files with a single tool. Supports conversion between formats and can be used as a Go package.Project mention: Can Vim show the key-chain like Android Studio does for JSON files? | reddit.com/r/vim | 2021-11-10
Scout APM: A developer's best friend. Try free for 14-days. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
A natural language date/time parser with pluggable rules (by olebedev)
A POSIX-compliant AWK interpreter written in GoProject mention: A Git Implementation in Awk | news.ycombinator.com | 2021-10-06
Namespaces (GNU Awk 5.0+) make Awk pretty well suited for larger projects (as demonstrated by aho), but it never quite took off; this article (by the author of GoAwk) is a nice look at the relevance of Awk in 2020: https://lwn.net/Articles/820829/
PHP parser written in Go (by z7zmey)Project mention: NoColor — validate the architecture of your PHP project | reddit.com/r/PHP | 2021-06-28
Unfortunately, there are problems with using Go for parsing, it is a parsing library. We use https://github.com/z7zmey/php-parser which now fully supports PHP 7.4, but the developer is currently not active and it is not known when PHP 8 will be supported (most likely we will do it ourselves soon).
Kong is a command-line parser for Go (by alecthomas)Project mention: Made my first command-line tool with Golang | reddit.com/r/golang | 2021-05-12
I think it is probably just a matter of personal taste, but I like to handle params and flags on the main function. I am probably biased by C experience and using https://github.com/alecthomas/kong though. Kong is certainly not as popular as cobra, but its approach.
:steam_locomotive: Decodes url.Values into Go value(s) and Encodes Go value(s) into url.Values. Dual Array and Full map support. (by go-playground)
Optimized JSON for GoProject mention: Go 1.17 Release Notes | news.ycombinator.com | 2021-08-16
omniparser: a native Golang ETL streaming parser and transform library for CSV, JSON, XML, EDI, text, etc.Project mention: A (streaming) text parser supports many formats like EDI, JSON, fixed-lenght, csv, XML etc. | reddit.com/r/golang | 2021-03-28
High performance CS:GO demo parser for Go (demoinfo)Project mention: How to emulate CSGO client-side demos (aka POV demos) with server-side demos (aka GOTV demos) and HLAE | reddit.com/r/GlobalOffensive | 2021-10-31
I'm not sure. That might be something that /u/afx-dtugend can answer. Or, you might make as a feature request to one of the CSGO demo parsers, like this one that I use.
Tools to write high performance GraphQL applications using Go/Golang.Project mention: Moving Apollo Federation 2 to the Elastic License v2 | news.ycombinator.com | 2021-11-05
read INI-style configuration files into Go structs; supports user-defined types and subsections
A fast ISO8601 date parser for Go
Golang library for querying and parsing OFX
:movie_camera: Basic MP4 reader in Go! CLI + Golang Package for ISO/IEC 14496-12 - ISO Base Media File Format (by alfg)Project mention: A Quick Dive Into MP4 | dev.to | 2021-04-30
For a more complete example of reading MP4 boxes in Go, check out: https://github.com/alfg/mp4
Standalone PromQL and MetricsQL parserProject mention: tstorage: A fast time-series database library | reddit.com/r/golang | 2021-06-01
You can write a query parser with "github.com/VictoriaMetrics/metricsql". Actually I'm looking to write a tiny TSDB that supports PromQL with tstorage and this metricsql.
µjson - A fast and minimal JSON parser and transformer that works on unstructured JSONProject mention: µjson — A minimal JSON parser and transformer in Go | dev.to | 2021-01-08
This is the original motivation behind µjson. The following example finds keys ending with _id" ("order_id", "item_id", etc.) and converts their values from numbers to strings, by simply wrapping them in double-quotes.
Pagser is a simple, extensible, configurable parse and deserialize html page to struct based on goquery and struct tags for golang crawler
Go Parser related posts
Is GO a good option to write a compiler/interpreter?
4 projects | reddit.com/r/golang | 27 Nov 2021
6 projects | news.ycombinator.com | 27 Oct 2021
Alternative JSON parser for Go (10x times faster standard library)
1 project | reddit.com/r/devopskhan | 26 Oct 2021
Tech writer looking for an OSS project to join for Hacktoberfest
1 project | reddit.com/r/DevelopingAPIs | 4 Oct 2021
Simple Lists: a tiny to-do list app written the old-school way (server-side Go, no JS)
1 project | reddit.com/r/golang | 3 Oct 2021
How To Quantitatively Define Game Sense?
1 project | reddit.com/r/GlobalOffensive | 24 Sep 2021
1 project | reddit.com/r/golang | 25 Aug 2021
What are some of the best open-source Parser projects in Go? This list will help you:
Are you hiring? Post a new remote job listing for free.