Discover Packages
github.com/anitschke/codesearch
module
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Aug 28, 2026
License: BSD-3-Clause
Opens a new window with license information.
README
README
¶
Code Search
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 .
What is different about this fork?
Add GitHub Actions CI to run Go tests on PRs and master. (#2 )
Remove cmd/ and lib/ 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 on Create. (#5 )
Add WithZipExtensions option to configure which file extensions are treated as zip archives for indexing (e.g., .slx, .jar). (#6 )
Versioning
This project follows Semantic Versioning .
Cutting a release
Ensure master is in the state you want to release.
Tag and push:
VERSION=v1.2.3; git tag $VERSION && git push origin $VERSION
Depending on this fork
// go.mod
require github.com/anitschke/codesearch v1.2.3
Expand ▾
Collapse ▴
Directories
¶
Package regexp implements regular expression search tuned for use in grep-like programs.
Package regexp implements regular expression search tuned for use in grep-like programs.
Package sparse implements sparse sets.
Package sparse implements sparse sets.
Click to show internal directories.
Click to hide internal directories.