title: How to override configuration?
body: <p>We have configuration file per deploy environment, as shown in below code:</p>
  <p>configs/.dev.env</p>
  <pre><code>  deploy_env=dev
  </code></pre>
  <p>configs/.env</p>
  <pre><code>  deploy_env=local
  </code></pre>
  <hr />
  <p>main.go</p>
  <pre><code>package main
  
  import (
      &quot;fmt&quot;
      &quot;os&quot;
  
      &quot;github.com/joho/godotenv&quot;
  )
  
  func main() {
      err := godotenv.Load(&quot;./configs/.env&quot;) // load
      if err != nil {
          fmt.Println(&quot;unable to load&quot;)
      }
      err = godotenv.Load(&quot;./configs/.dev.env&quot;) // expecting to override configuration
      if err != nil {
          fmt.Println(&quot;unable to load&quot;)
      }
      fmt.Println(os.Getenv(&quot;deploy_env&quot;)) // Got output as: local       
                                           // Expecting output: dev
  }
  </code></pre>
  <hr />
  <p>How to override configuration? expecting <code>deploy_env</code> to set as <code>dev</code>?</p>