mock

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package mock provides mock implementations of nbggovge.Client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(data []nbggovge.Rates) nbggovge.Client

NewClient creates a new mock client. It returns a client that returns data for each request. If currency is not found in data, it returns http.StatusNotFound. if date is empty, it returns current date in response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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