Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A better locate tool written in Go
Go
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
goloc
README.md
config.go
fileitem.go
fileitem_test.go
indexdb.go

README.md

golocate

golocate is a locate-like tool to build filelist index for searching, which is written in Go with concurrency support.

The difference between locate and golocate is golocate saves your prefered paths, ignore list for indexing, so the indexdb is pretty small for searching, and very easy for updating.

golocate uses separate goroutines to build/search index from custom paths, it's fast enough.

Install

go get github.com/c9s/golocate/goloc

Build index

goloc -build ~/Desktop /usr/local/include /etc

To build index with verbose messages:

goloc -build -v ~/Desktop ~/Downloads

Update index

goloc -update

Search from indexdb

goloc [pattern]
Something went wrong with that request. Please try again.