Top 2.9% dependent repos on proxy.golang.org
proxy.golang.org : github.com/mjl-/sconf
Package sconf parses simple configuration files and generates commented example config files. Sconf is the name of this package and of the config file format. The file format is inspired by JSON and yaml, but easier to write and use correctly. Sconf goals: Workflow for using this package: Features of sconf as file format: An example config file: The top-level is always a map, typically parsed into a Go struct. Maps start with a key, followed by a colon, followed by a value. Basic values like strings, ints, bools run to the end of the line. The leading space after a colon or dash is removed. Other values like maps and lists start on a new line, with an additional level of indenting. List values start with a dash. Empty lines are allowed. Multiline strings are not possible. Strings do not have escaped characters. And the struct that generated this: See cmd/sconfexample/main.go for more details. In practice, you will mostly have nested maps: Sconf only parses config files. It does not deal with command-line flags or environment variables. Flags and environment variables are too limiting in data types. Especially environment variables are error prone: Applications typically have default values they fall back to, so will not notice typo's or unrecognized variables. Config files also have the nice property of being easy to diff, copy around, store in a VCS. In practice, command-line flags and environment variables are commonly stored in config files. Sconf goes straight to the config files.
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/github.com/mjl-/sconf
License: MIT
Latest release: about 1 year ago
First release: over 5 years ago
Namespace: github.com/mjl-
Dependent packages: 8
Dependent repositories: 3
Stars: 1 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 13 days ago
github.com/mjl-/health v0.0.3
simple healthchecker that checks your internal monitoring services3 versions - Latest release: almost 2 years ago - 0 stars on GitHub
github.com/jsfan3/mox v0.0.0-20231226140247-6ebae4f4bca5
Command mox is a modern, secure, full-featured, open source mail server for low-maintenance self-...1 version - Latest release: almost 2 years ago - 0 stars on GitHub
github.com/mjl-/bolong v1.1.3
Bolong is a simple, secure and fast command-line backup and restore tool. See the project README...9 versions - Latest release: over 2 years ago - 1 stars on GitHub
Check this option to include packages that no longer depend on this package in their latest version but previously did.