This is a fairly straight-forward Go implementation of the https://onetimesecret.com service for Go applications
go get -u github.com/j4ng5y/onetimesecret-go
package main
import "github.com/j4ng5y/onetimesecret-go"
func main() {
c := onetimesecret.New(&onetimesecret.Credentials{Username:"j4ng5y",APIToken:"abcdefg12345"})
...
}
Please see the examples folder.
If you want to use a custom http client, instead of using the onetimesecret.New()
function to generate the client, use the onetimesecret.NewWithOptions()
function.