package example import ( "fmt" "github.com/micro/services/clients/go/currency" "os" ) // Codes returns the supported currency codes for the API func GetSupportedCodes() { currencyService := currency.NewCurrencyService(os.Getenv("MICRO_API_TOKEN")) rsp, err := currencyService.Codes(¤cy.CodesRequest{}) fmt.Println(rsp, err) }