readconf 0.1.1
Singleton for simple reading of the configuration file
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
readconf
Singleton for reading the configuration file required for your program.
Quick start
The settings.conf
file (see the tests):
Read settings.conf
file:
import readconf;
import std.stdio;
void main()
{
Config.file.read("./settings.conf");
foreach (key, param; Config.file.keys())
writefln("%s => %s", key, param);
writeln(Config.file.key("value1"));
}
Result:
value1 => This is the full value
value2 => Take the value in quotation marks
value3 => Or take in apostrophes
value4 => You can also comment
value5 => So you can also comment
value6 => "And you can even do that!"
value7 => 1234567890
value8 => 12345.67890
value9 => You can use large margins
value12 => //path
This is the full value
- Registered by Alexander Zhirov
- 0.1.1 released a year ago
- AlexanderZhirov/readconf
- git.zhirov.kz/dlang/readconf.git
- GPL-2.0
- © Alexander Zhirov, 2023
- Authors:
- Dependencies:
- singlog
- Versions:
-
0.4.1 2024-Feb-09 0.4.0 2023-Jun-07 0.3.1 2023-Apr-29 0.3.0 2023-Mar-30 0.2.0 2023-Mar-26 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
1 downloads this month
-
57 downloads total
-
- Score:
- 0.4
- Short URL:
- readconf.dub.pm