func main() {
	key := os.Getenv("BFX_API_KEY")
	secret := os.Getenv("BFX_API_SECRET")
	c := rest.
		NewClient().
		Credentials(key, secret)
	pulseProfile(c)
	publicPulseHistory(c)
	addPulse(c)
	addComment(c)
	pulseHistory(c)
	deletePulse(c)
}
Set BFX_API_KEY and BFX_API_SECRET:

export BFX_API_KEY=<your-api-key>
export BFX_API_SECRET=<your-api-secret>

you can obtain it from https://www.bitfinex.com/api
package main
import (
	"log"
	"os"
	"time"
	"github.com/bitfinexcom/bitfinex-api-go/pkg/models/common"
	"github.com/bitfinexcom/bitfinex-api-go/pkg/models/pulse"
	"github.com/bitfinexcom/bitfinex-api-go/v2/rest"
	"github.com/davecgh/go-spew/spew"
)