mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 05:44:20 +01:00
22 lines
421 B
Go
22 lines
421 B
Go
package example
|
|
|
|
import (
|
|
"log"
|
|
)
|
|
|
|
func ListFiatCurrencies() {
|
|
// ANCHOR: list-fiat-currencies
|
|
if fiatCurrencies, err := sdk.ListFiatCurrencies(); err == nil {
|
|
log.Printf("%#v", fiatCurrencies)
|
|
}
|
|
// ANCHOR_END: list-fiat-currencies
|
|
}
|
|
|
|
func FetchFiatRates() {
|
|
// ANCHOR: fetch-fiat-rates
|
|
if fiatRates, err := sdk.FetchFiatRates(); err == nil {
|
|
log.Printf("%#v", fiatRates)
|
|
}
|
|
// ANCHOR_END: fetch-fiat-rates
|
|
}
|