gosearchGolang 包快速安装工具

联合创作 · 2023-09-28 10:32

gosearch 是一款基于godoc.org提供的api开发的快速搜索/安装Golang包的工具

安装方法

go get github.com/clearcodecn/gosearch

使用方式

gosearch [包名称...]
如:
gosearch  gin  logrus websocket

特性

* 支持本地缓存,建立了关键词与搜索结果的索引,下次搜索直接从缓存读取,如果需要从服务器获取可以加 --no-cache 参数

* 支持多个包的搜索,顺序下载

* 支持缓存清除.

选项:

☁  $  gosearch
Usage:
  gosearch [flags]
  gosearch [command]

Examples:
gosearch cobra

Available Commands:
  clean       clean package caches
  help        Help about any command
  version     get gosearch's version

Flags:
      --goflag string   setting go get flags,default is empty
  -h, --help            help for gosearch
      --no-cache        search from server directly

Use "gosearch [command] --help" for more information about a command.
浏览 2
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报