You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentation about parser.ParseFile says, at the beginning[1]
"ParseFile parses a Go source file and returns a File node."
Which is not true since it can parse from another sources.
It also could be use another name like Parse to avoid confusion.
[1]: http://golang.org/pkg/go/parser/#ParseFile