// contents reads and returns the content of the named file // (from the virtual file system, so for example /doc refers to $GOROOT/doc). func (c *Corpus) contents(name string) string { … } // stringFor returns a textual representation of the arg, formatted according to its nature. func stringFor(arg interface{ … } func (p *Presentation) code(file string, arg ...interface{ … } // parseArg returns the integer or string value of the argument and tells which it is. func parseArg(arg interface{ … } // oneLine returns the single line generated by a two-argument code invocation. func (c *Corpus) oneLine(file, text string, arg interface{ … } // multipleLines returns the text generated by a three-argument code invocation. func (c *Corpus) multipleLines(file, text string, arg1, arg2 interface{ … } // match identifies the input line that matches the pattern in a code invocation. // If start>0, match lines starting there rather than at the beginning. // The return value is 1-indexed. func match(file string, start int, lines []string, pattern string) int { … }