diff --git a/README.md b/README.md index d596326..527e0ab 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,11 @@ use dotenv::dotenv; config! { DEBUG: bool => true, HOST: String => "127.0.0.1".to_string(), + + NAMESPACE { + FOO: bool => true, + BAR: i32 => 10, + } } fn main () { diff --git a/itconfig/README.md b/itconfig/README.md index 1d35b43..00f35a5 100644 --- a/itconfig/README.md +++ b/itconfig/README.md @@ -14,6 +14,11 @@ We recommend you start with the [documentation]. config! { DEBUG: bool => true, HOST: String => "127.0.0.1".to_string(), + + NAMESPACE { + FOO: bool => true, + BAR: i32 => 10, + } } fn main () { diff --git a/itconfig/src/lib.rs b/itconfig/src/lib.rs index 4bdfec7..857fc7b 100644 --- a/itconfig/src/lib.rs +++ b/itconfig/src/lib.rs @@ -12,6 +12,11 @@ //! config! { //! DEBUG: bool => true, //! HOST: String => "127.0.0.1".to_string(), +//! +//! NAMESPACE { +//! FOO: bool => true, +//! BAR: i32 => 10, +//! } //! } //! //! fn main () {