diff --git a/README.md b/README.md
index 540e5efc9af3e79d73331a76203a090b09e4eb17..1af110e5839c51d0f52866a4f31df3ba26dcf541 100644
--- a/README.md
+++ b/README.md
@@ -9,6 +9,19 @@ type exampleConfig struct {
 }
 ````
 
+you can also define extra structs inside the config struct:
+````go
+type exampleConfig struct {
+    core.BaseConfig `mapstructure:",squash"`
+    TestValue       string `mapstructure:"testValue"`
+    OAuth           struct {
+        ServerUrl    string `mapstructure:"serverUrl"`
+        ClientId     string `mapstructure:"clientId"`
+        ClientSecret string `mapstructure:"clientSecret"`
+    } `mapstructure:"oAuth"`
+}
+````
+
 2. Create global config struct instance and load config with LoadConfig() function. Provide Prefix for ENV variables and map with default values
 ````go
 var ExampleConfig exampleConfig