type Corpus … // NewCorpus returns a new Corpus from a filesystem. // The returned corpus has all indexing enabled and MaxResults set to 1000. // Change or set any options on Corpus before calling the Corpus.Init method. func NewCorpus(fs vfs.FileSystem) *Corpus { … } func (c *Corpus) CurrentIndex() (*Index, time.Time) { … } func (c *Corpus) FSModifiedTime() time.Time { … } // Init initializes Corpus, once options on Corpus are set. // It must be called before any subsequent method calls. func (c *Corpus) Init() error { … } func (c *Corpus) initFSTree() error { … }