func main() {
	key := os.Getenv("BFX_API_KEY")
	secret := os.Getenv("BFX_API_SECRET")
	c := rest.NewClient().Credentials(key, secret)
	getWallets(c)
	transfer(c)
	depositAddress(c)
	createDepositAddress(c)
	withdraw(c)
}
Set BFX_API_KEY and BFX_API_SECRET as :

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"
	"github.com/bitfinexcom/bitfinex-api-go/v2/rest"
	"github.com/davecgh/go-spew/spew"
)