title: Not enough arguments to a function without arguments
body: <p>I'm new to GO, so I wanted to try my hand in a little application to help me manage some trips. I'm following the design found here: <a href="https://www.sohamkamani.com/blog/2017/10/18/golang-adding-database-to-web-application/" rel="nofollow noreferrer">sohamkamani.com</a></p>
  
  <p>I'm encountering some errors that don't make sense to me...</p>
  
  <pre><code>src/trip-manager/handlers/PersonHandlers.go:14:40: not enough arguments in call to method expression stores.PersonStore.FindAll
          have ()
          want (stores.PersonStore)
  </code></pre>
  
  <p>My function doesn't want arguments? What am I missing here?</p>
  
  <p>Also, I didn't encunter this error previously before splitting everything up in packages and before introducing a second store. But because I'm an idiot, I didn't make a commit back then to revert to, to find out what I've done wrong. hopefully someone here might spot my mistake?</p>
  
  <p><strong>handlers/PersonHandlers.go:14</strong></p>
  
  <pre><code>var people, err = PersonStore.FindAll()
  </code></pre>
  
  <p><strong>stores/PersonStore.go</strong></p>
  
  <pre><code>type PersonStore interface {
    FindAll() ([]*Person, error)
  }
  
  type DbPersonStore struct {
    Db *sql.DB
  }
  
  var personStore PersonStore
  
  func (personStore *DbPersonStore) FindAll() ([]*Person, error) {
    ...
  }
  
  func InitPersonStore(s PersonStore) {
    personStore = s
  }
  </code></pre>
  
  <p>And finally: <strong>main.go</strong></p>
  
  <pre><code>func main() {
    fmt.Println("Hello, world. Listening on port 3000")
  
    router := NewRouter()
  
    psqlInfo := fmt.Sprintf(
      "host=%s port=%d user=%s password=%s dbname=%s sslmode=disable",
      cred.Host, cred.Port, cred.User, cred.Password, cred.Database,
    )
  
    var db, err = sql.Open("postgres", psqlInfo)
  
    if err != nil {
      panic(err)
    }
  
    InitPersonStore(&amp;DbPersonStore{Db: db})
  
    log.Fatal(http.ListenAndServe(":3000", router))
  }
  </code></pre>