title: Go cannot find file specified
body: <p>I'm trying to make simple read settings from config file. Both files - config.json and Settings.go, are in the same folder. But I'm always getting <code>"The system cannot find the file specified."</code> What I'm doing wrong?</p>
  
  <pre><code>func GetDbConnectionString() string {
      file, err := os.Open("config.json")
      if err != nil {
          log.Fatal(err)
      }
      decoder := json.NewDecoder(file)
      settings := Settings{}
      err1 := decoder.Decode(&amp;settings)
      if err1 != nil {
          fmt.Println("error:", err1)
      }
      log.Print(&amp;settings)
      return fmt.Sprintf("%s:%s@/%s", settings.login, settings.password, settings.database)
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/tASqQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tASqQ.png" alt="enter image description here"></a></p>