Code Search is a tool for indexing and then performing regular expression searches over large bodies of source code. It is a set of command-line programs written in Go.
This is a fork of Russ Cox's https://github.com/google/codesearch.
- Add GitHub Actions CI to run Go tests on PRs and master. (#2)
- Remove
cmd/andlib/directories — this fork is consumed as a library only. (#3) - Add versioning documentation and update module path to
github.com/anitschke/codesearch. (#4) - Add configurable index limits (
maxFileLen,maxLineLen,maxTextTrigrams) via functional options onCreate. (#5) - Add
WithZipExtensionsoption to configure which file extensions are treated as zip archives for indexing (e.g.,.slx,.jar). (#6) - Close the index file and temporary files when
IndexWriter.Flushfinishes, and unmap the temporary posting file, so they no longer stay open (on Windows, open files can't be deleted and keep their volume from being dismounted). (#7) - Merge upstream
74a12a9, a smallsortPostperformance optimization that avoids copying its counting array. (#8)
This project follows Semantic Versioning.
- Ensure
masteris in the state you want to release. - Tag and push:
VERSION=v1.2.3; git tag $VERSION && git push origin $VERSION
// go.mod
require github.com/anitschke/codesearch v1.2.3