DEV Community

kinensake
kinensake

Posted on

Gosearch - A Package Searching and Installation tool for Go Projects

Introduction

When starting a new Go project, you often "go get" some package likes mux, mongo go driver, gorm,... And with each package, you need to remember full path of that package:

go get -u github.com/gorilla/mux
go get go.mongodb.org/mongo-driver/mongo
go get -u gorm.io/gorm
Enter fullscreen mode Exit fullscreen mode

It's really inconvenient. But don't worry, I have written small tool that you can use to search and install go packages with just keyword.

Installation

go install github.com/kinensake/gosearch@v1.0.2
Enter fullscreen mode Exit fullscreen mode

Usage

gosearch <package-keyword>
Enter fullscreen mode Exit fullscreen mode

Then choose package in package list to install.

Example

Demo

This will get package into your module automatically.


Github Repository: https://github.com/kinensake/gosearch
If you like it, please give my repository one star ⭐
Your contribution is also my honor ❤️

Discussion (0)