go-toml
ansible-dhall-jsonnet | go-toml | |
---|---|---|
2 | 2 | |
6 | 1,649 | |
- | - | |
0.0 | 7.4 | |
over 3 years ago | 7 days ago | |
Dhall | Go | |
BSD 3-clause "New" or "Revised" License | GNU General Public License v3.0 or later |
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.
ansible-dhall-jsonnet
-
What Is Wrong with TOML?
Maybe you'd like jsonnet: https://jsonnet.org/
I find it particularly useful for configurations that often have repeated boilerplate, like ansible playbooks or deploying a bunch of "similar-but" services to kubernetes (with https://tanka.dev).
Dhall is also quite interesting, with some tradeoffs: https://dhall-lang.org/
A few years ago I did a small comparison by re-implementing one of my simpler ansible playbooks: https://github.com/retzkek/ansible-dhall-jsonnet
-
Intercal, YAML, and Other Horrible Programming Languages
A few months ago I explored using Dhall and Jsonnet to re-write an Ansible playbook [0,1]. I wanted to like Dhall, but found the type system got in the way more than it helped, while Jsonnet was very productive and a huge improvement over YAML.
[0] https://www.kmr.me/posts/dhall_jsonnet
[1] https://github.com/retzkek/ansible-dhall-jsonnet
go-toml
-
What Is Wrong with TOML?
I wrote one of the Go implementations [0] when TOML was announced and have maintained it since.
As a library implementor, I wish arrays would hold only one type at a time, but I get that could be useful for users. But as a user, I wish tables were fully defined once (more can't be added up later in the file), especially when using larger files.
[0]: https://github.com/pelletier/go-toml
-
Hw to open these files locally using vs code?
Looks like a it's struggling to install a go dependency, something prob changed since the time this project was made and now. I don't use go but someone more familiar with it can prob help you. Googling the error brought me to this it might solve your problem https://github.com/pelletier/go-toml/discussions/562
What are some alternatives?
Pulumi - Pulumi - Infrastructure as Code in any programming language 🚀
viper - Go configuration with fangs
wasp - The fastest way to develop full-stack web apps with React & Node.js.
hocon - go implementation of lightbend's HOCON configuration library https://github.com/lightbend/config
config - configuration library for JVM languages using HOCON files
ini - Package ini provides INI file read and write functionality in Go
dhall-lang - Maintainable configuration files
toml - Instream TOML to JSON encoder
ShellCheck - ShellCheck, a static analysis tool for shell scripts
env - A simple and zero-dependencies library to parse environment variables into structs
RailsConfig - Easiest way to add multi-environment yaml settings to Rails, Sinatra, Padrino and other Ruby projects.
go-ini - Go package that encodes and decodes INI-files