not enough arguments in call to method expression
<p>While learning go I came to following error: </p>

<pre><code>prog.go:18: not enough arguments in call to method expression JSONParser.Parse 
</code></pre>

<p>in my test program (<a href="https://play.golang.org/p/PW9SF4c9q8" rel="noreferrer">https://play.golang.org/p/PW9SF4c9q8</a>):</p>

<pre><code>package main


type Schema struct {
}

type JSONParser struct {
}

func (jsonParser JSONParser) Parse(toParse []byte) ([]Schema, int) {
    var schema []Schema
    // whatever parsing logic
    return schema, 0 
}

func main() {
    var in []byte
    actual, err2 := JSONParser.Parse(in)
}
</code></pre>

<p>Anyone willing to help me to move on here?</p>