codesearch

module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2026 License: BSD-3-Clause

README

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
  1. Ensure master is in the state you want to release.
  2. 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

Directories

Path Synopsis
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL