Closed zoujiaqing closed 5 years ago
test.conf
servers[0].listen = 8.8.6.1
servers[0].port = 81
servers[1].listen = 8.8.6.2
servers[1].port = 82
ages = 20, 30, 40
users = user01, user02, user03
The code
@Configuration("server")
struct ServerSettings
{
@Value("listen")
string ip = "127.0.0.1";
ushort port = 8080;
}
class ArrayTestConfig {
string name;
int[] ages;
string[] users;
ServerSettings[] servers;
}
test.conf
D Code: