mirror of https://github.com/deuill/farsight.git
parser.go: Fix comment on Parse method for golint
This commit is contained in:
parent
576aa63944
commit
aa00425e7a
|
@ -35,9 +35,8 @@ func Register(name string, rcvr Parser) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read and parse document by calling the appropriate concrete parser for the kind
|
// Parse calls the appropriate concrete parser for the kind passed. Returns a
|
||||||
// passed. Returns a parsed document, which can then be queried against, or an
|
// parsed document, which can then be queried against, or an error if parsing fails.
|
||||||
// error if parsing fails.
|
|
||||||
func Parse(kind string, src io.Reader) (Document, error) {
|
func Parse(kind string, src io.Reader) (Document, error) {
|
||||||
if _, exists := parsers[kind]; !exists {
|
if _, exists := parsers[kind]; !exists {
|
||||||
return nil, fmt.Errorf("Parser for '%s' not found", kind)
|
return nil, fmt.Errorf("Parser for '%s' not found", kind)
|
||||||
|
|
Loading…
Reference in New Issue