// once readResults is finished it will close coordinator and move along
<-coordinator
// allow that routine to finish, then close page & fileconvchan as we've sent
- // everthing to them we need to.
+ // everything to them we need to.
close(pageChan)
close(fileConvChan)
s.timerStep("read & convert pages from source")
- fmt.Errorf("%s", errs)
+ fmt.Errorf("%v", errs)
s.setupPrevNext()
if err = s.BuildSiteMeta(); err != nil {
} else {
return err
}
-
- return nil
}
func (s *Site) Analyze() error {
}
// extractFrontMatterDelims takes a frontmatter from the content bufio.Reader.
-// Begining white spaces of the bufio.Reader must be trimmed before call this
+// Beginning white spaces of the bufio.Reader must be trimmed before call this
// function.
func extractFrontMatterDelims(r *bufio.Reader, left, right []byte) (fm FrontMatter, err error) {
var (
return strings.Trim(aStr, b), nil
}
-// replace all occurences of b with c in a
+// replace all occurrences of b with c in a
func replace(a, b, c interface{}) (string, error) {
aStr, err := cast.ToStringE(a)
if err != nil {