dev #1

Merged
alexander merged 9 commits from dev into master 2023-03-26 08:38:23 +00:00
2 changed files with 22 additions and 0 deletions
Showing only changes of commit 3d0d45c48c - Show all commits

11
CHANGELOG.md Normal file
View File

@ -0,0 +1,11 @@
# Changelog
## [0.2.0]()
26.03.2023
### New
- Adding sections support
- Taking into account spaces and tabs to separate the parameter, value and comment
- Added aliases to convenient parameter access to the value

View File

@ -2,6 +2,13 @@
Singleton for reading the configuration file required for your program.
## What can do
1. Separation of parameter and value by separators `=` and `=>`
2. Commenting on lines using special characters `;`, `#`, `//`, `/*`
3. Support for sections for describing parameter blocks (sections are set by the name in `[]`)
4. Support for spaces and tabs for visual separation
## Quick start
The `settings.conf` file (see the [tests](tests/)):
@ -45,3 +52,7 @@ value1 => this value will be in the new section
value3 => good value!
this value will be in the new section
```
## Dub
Add a dependency on `"readconf": "~>0.2.0"`