chore: update example

This commit is contained in:
Dmitriy Pleshevskiy 2019-12-25 11:03:33 +03:00
parent 79533e2c78
commit 4358328663
3 changed files with 15 additions and 0 deletions

View file

@ -16,6 +16,11 @@ use dotenv::dotenv;
config! { config! {
DEBUG: bool => true, DEBUG: bool => true,
HOST: String => "127.0.0.1".to_string(), HOST: String => "127.0.0.1".to_string(),
NAMESPACE {
FOO: bool => true,
BAR: i32 => 10,
}
} }
fn main () { fn main () {

View file

@ -14,6 +14,11 @@ We recommend you start with the [documentation].
config! { config! {
DEBUG: bool => true, DEBUG: bool => true,
HOST: String => "127.0.0.1".to_string(), HOST: String => "127.0.0.1".to_string(),
NAMESPACE {
FOO: bool => true,
BAR: i32 => 10,
}
} }
fn main () { fn main () {

View file

@ -12,6 +12,11 @@
//! config! { //! config! {
//! DEBUG: bool => true, //! DEBUG: bool => true,
//! HOST: String => "127.0.0.1".to_string(), //! HOST: String => "127.0.0.1".to_string(),
//!
//! NAMESPACE {
//! FOO: bool => true,
//! BAR: i32 => 10,
//! }
//! } //! }
//! //!
//! fn main () { //! fn main () {