links

Alexander Zhirov 2023-03-30 10:19:32 +03:00
parent 975956f8c9
commit 98b029c96f
1 changed files with 4 additions and 4 deletions

@ -81,13 +81,13 @@ parameter1 = value11
parameter2 = value12
```
The configuration files themselves are located [here]().
The configuration files themselves are located [here](https://git.zhirov.kz/dlang/readconf/src/branch/master/examples).
## Examples of reading configuration files
### Reading a simple configuration file
A simple example of reading a single configuration file and getting parameter **values** from it. The [simple.conf]() file is taken as the configuration file:
A simple example of reading a single configuration file and getting parameter **values** from it. The [simple.conf](https://git.zhirov.kz/dlang/readconf/src/branch/master/examples/simple.conf) file is taken as the configuration file:
```d
{
@ -130,7 +130,7 @@ Getting parameter **values** from the selected **section** is done via the key f
### Reading from various sections
Reading a configuration file with different **sections**. The [section.conf]() file is taken as the configuration file:
Reading a configuration file with different **sections**. The [section.conf](https://git.zhirov.kz/dlang/readconf/src/branch/master/examples/sections.conf) file is taken as the configuration file:
```d
{
@ -154,7 +154,7 @@ Reading a configuration file with different **sections**. The [section.conf]() f
### Reading multiple configuration files
To read multiple configuration files, you need to associate the file with its alias. In this capacity, the file name itself acts by default. If the files are located in different directories but have the same names - in this case, you need to give them unique aliases. The [simple.conf](), [section.conf]() and [comments.conf]() files is taken as the configuration files:
To read multiple configuration files, you need to associate the file with its alias. In this capacity, the file name itself acts by default. If the files are located in different directories but have the same names - in this case, you need to give them unique aliases. The [simple.conf](https://git.zhirov.kz/dlang/readconf/src/branch/master/examples/simple.conf), [section.conf](https://git.zhirov.kz/dlang/readconf/src/branch/master/examples/sections.conf) and [comments.conf](https://git.zhirov.kz/dlang/readconf/src/branch/master/examples/comments.conf) files is taken as the configuration files:
```d
{