2022-10-06 23:55:31 +02:00
|
|
|
module examples.manipulation.app;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Authors:
|
|
|
|
* Mike Bierlee, m.bierlee@lostmoment.com
|
2023-01-11 00:06:41 +01:00
|
|
|
* Copyright: 2022-2023 Mike Bierlee
|
2022-10-06 23:55:31 +02:00
|
|
|
* License:
|
|
|
|
* This software is licensed under the terms of the MIT license.
|
|
|
|
* The full terms of the license can be found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
2022-10-08 23:05:33 +02:00
|
|
|
import mirage.config : loadConfig;
|
2022-10-06 23:55:31 +02:00
|
|
|
|
|
|
|
import std.stdio : writeln;
|
|
|
|
|
|
|
|
void main() {
|
2022-10-08 23:05:33 +02:00
|
|
|
auto config = loadConfig("config.json");
|
2022-10-06 23:55:31 +02:00
|
|
|
config.set("application.name", "Real HTTP Server");
|
|
|
|
|
|
|
|
auto applicationName = config.get("application.name");
|
|
|
|
writeln(applicationName);
|
|
|
|
}
|