Skip to content
This repository was archived by the owner on Feb 25, 2021. It is now read-only.
milofonPublic archive

About

A library for reading properties files

Resources

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

 

History

28 Commits

Folders and files

Repository files navigation

Example

import proped;

auto loader = createPropertiesLoader();
auto properties = loader("config.json");
properties ~= loader("config-local.yml");


auto host = properties.getOrElse("server.host", "localhost");
auto port = properties.getOrElse("server.port", 8080);


auto serverConfig = properties.sub("server");
if (!serverConfig.isNull)
{
    auto sHost = serverConfig.getOrElse("host", "localhost");
    auto sPort = serverConfig.getOrElse("port", 8080);
}

About

A library for reading properties files

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages