To start using go-otp, install Go and run go get
:
go get github.com/vlaship/go-otp
This will retrieve the library.
Import the package into your project.
import "github.com/vlaship/go-otp"
Use it like this:
o := otp.Generate()
This will generate a new OTP.