title: No such file or directory error from os.Open
body: <p>I am struggling to figure out an issue with os.Open. I keep getting a 'no such file or directory' error when using os.Open on a folder named templates. So I have my folder MVCApp with bin pkg src and templates in it. Then I have main in the src folder. So I have this code:</p>
  
  <pre><code>basePath := "templates"
  templateFolder, err := os.Open(basePath)
  if err != nil {
      log.Fatal(err)
  }
  defer templateFolder.Close()
  </code></pre>
  
  <p>I think it has something to do with the basePath that I am using with the open, but I cannot figure out how I need to preface "templates" in order for it to find this directory. I am sure this is an easy fix, but it has me perplexed. Any help would be greatly appreciated.</p>