DEV Community

kinensake
kinensake

Posted on

Psearch - 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/psearch@v1.0.1
Enter fullscreen mode Exit fullscreen mode

Usage

psearch <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/psearch
If you like it, please give my repository one star ⭐
Your contribution is also my honor ❤️

Top comments (0)