Skip to content

golang locate for search local file or dir very fast

License

Notifications You must be signed in to change notification settings

lflxp/go-locate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-locate

TODO

  1. cobra cli
  2. zsh/bash completions
  3. refresh/searchall/searchPrefix
  4. use linux kernel monitor file change
  5. use one or three index for search file

Description

Go version locate application and BBolt database storage

Installation

go get -u github.com/lflxp/go-locate

Instructions

➜  go-locate ./go-locate -h                   
A longer description that spans multiple lines and likely contains
examples and usage of using your application. For example:

Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.

Usage:
  go-locate [flags]
  go-locate [command]

Available Commands:
  count       count数据
  delete      Delete数据
  help        Help about any command
  init        初始化数据

Flags:
  -a, --all             扫描方式: 默认全表扫描,false为prefix扫描
      --config string   config file (default is $HOME/.go-locate.yaml)
  -v, --debug           是否debug日志输出
  -h, --help            help for go-locate
  -i, --info string     support regexp, check message,default: ''
  -t, --toggle          Help message for toggle

Use "go-locate [command] --help" for more information about a command.

Contribution

  1. Fork the repository
  2. Create Feat_xxx branch
  3. Commit your code
  4. Create Pull Request

Github Feature

  1. You can use Readme_XXX.md to support different languages, such as Readme_en.md, Readme_zh.md
  2. Github blog blog.Github.com
  3. Explore open source project https://Github.com/explore
  4. The most valuable open source project GVP
  5. The manual of Github https://Github.com/help
  6. The most popular members https://Github.com/Github-stars/