option

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package option represents options pattern for Rates request.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RatesOption

type RatesOption interface {
	Apply(params *internal.RatesParams)
}

RatesOption represents optional pattern for nbgogvge rates client.

func WithCurrency

func WithCurrency(code string) RatesOption

WithCurrency adds currency code to options.

func WithDate

func WithDate(date time.Time) RatesOption

WithDate adds date to options.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL