toml
TOML parser for Golang with reflection. (by BurntSushi)
mxj
Decode / encode XML to/from map[string]interface{} (or JSON); extract values with dot-notation paths and wildcards. Replaces x2j and j2x packages. (by clbanning)

Nutrient – The #1 PDF SDK Library, trusted by 10K+ developers
Other PDF SDKs promise a lot - then break. Laggy scrolling, poor mobile UX, tons of bugs, and lack of support cost you endless frustrations. Nutrient’s SDK handles billion-page workloads - so you don’t have to debug PDFs. Used by ~1 billion end users in more than 150 different countries.
www.nutrient.io
featured
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
toml
Posts with mentions or reviews of toml.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-04-19.
- how to write struct data into a file
-
Distributed IM Service in Golang
BurntSushi / toml : This is an excellent configuration file format, which I personally prefer
-
Rust Moderation Team Resigns
He's also a prominent contributor to the Go ecosystem.
https://github.com/BurntSushi/toml
- BurntSushi/toml is supported again! And by it's by arp242
-
GOPROXY alternative for non go modules
There are packages such as https://github.com/BurntSushi/toml which is not a go module, how should I serve it in an airlocked network? For go modules I'm using athens is there something similar to it for non go modules?
mxj
Posts with mentions or reviews of mxj.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-30.
-
Newbie: I have a big xml file, the content is much nested tags and what I need to do is adding a field in a very nested tag in this file. One “not elegant” way is to make thousands of structs to parse the file. Do you guys have a simple solution for a task like that.
It generates Go structs from XML files. Compared to projects like https://github.com/clbanning/mxj, it generates much better Go code and you can feed it multiple example XML files.
-
If maps are not ordered, why does it display in the correct order when printing ?
Prior to Go 1.12 unit tests where you wanted to verify a map value - or its serialization in JSON - you needed to visually inspect the output. You couldn't just compare the result to a known string value. (You can see the messy result of this still lingering in older packages, such as, github.com/clbanning/mxj or .../x2j and .../j2x. In fact, similar sorting of map values was added in .../mxj for marshaling XML docs from maps.)
-
Golang json to xml, xlm to json
Hello, maybe someone had experience converting xlm to json and json to xlm without structs? I have found some libs like github.com/clbanning/mxj but it loses sequences, of course I could modify xlm to remove seq to pass validation etc. Ideally it should work like this: https://www.utilities-online.info/xmltojson#.W1cSCNIzZPY
What are some alternatives?
When comparing toml and mxj you can also consider the following projects:
editorconfig-core-go - EditorConfig Core written in Go
GoQuery - A little like that j-thing, only in Go.
go-humanize - Go Humans! (formatters for units to human friendly sizes)
gotext - Go (Golang) GNU gettext utilities package
sh - A shell parser, formatter, and interpreter with bash support; includes shfmt
inject
bluemonday - bluemonday: a fast golang HTML sanitizer (inspired by the OWASP Java HTML Sanitizer) to scrub user generated content of XSS
bbConvert - Converter from BBCode to HTML
html-to-markdown - ⚙️ Convert HTML to Markdown. Even works with entire websites and can be extended through rules.
go-pkg-rss

Nutrient – The #1 PDF SDK Library, trusted by 10K+ developers
Other PDF SDKs promise a lot - then break. Laggy scrolling, poor mobile UX, tons of bugs, and lack of support cost you endless frustrations. Nutrient’s SDK handles billion-page workloads - so you don’t have to debug PDFs. Used by ~1 billion end users in more than 150 different countries.
www.nutrient.io
featured