func (f fileFetcher) Fetch(filePath string) (*html.Node, error) {
	file, err := ioutil.ReadFile(filePath)
	if err != nil {
		return nil, err
	}

	document, err := html.Parse(bytes.NewReader(file))
	if err != nil {
		return nil, err
	}

	return document, nil
}
// Fetch and parse a HTML document in the given path.
Fetch and parse a HTML document in the given path.
// Fetch and parse a HTML document in the given path .
func (f fileFetcher) Fetch(filePath string) (*html.Node, error) {
	file, err := ioutil.ReadFile(filePath)
	if err != nil {
		return nil, err
	}
	document, err := html.Parse(bytes.NewReader(file))
	if err != nil {
		return nil, err
	}
	return document, nil
}
func ( f fileFetcher ) Fetch ( filePath string ) ( * html . Node , error ) { file , err := ioutil . ReadFile ( filePath ) if err != nil { return nil , err } document , err := html . Parse ( bytes . NewReader ( file ) ) if err != nil { return nil , err } return document , nil }
Fetch and parse a HTML document in the given path.
Fetch and parse a HTML document in the given path .