utils

package
v0.0.0-...-3a28f6d Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCoins

func GetCoins() (map[string]any, error)

* GetCoins - info on the supported coins * @w - ptr to wrapper instance (reciever arg) * returns - map of supported coins

func Info

func Info(coin string) (map[string]any, error)

* Info - get information related to currency * @coin - coin to retrieve * returns - unmarshaled json body or an error

func Request

func Request(coin, endpoint string, params map[string]string) (map[string]any, error)

* Request - handles requests to url endpoints * @coin - coin * @endpoint - url to request * @params - request params * returns - unmarshalled json body and an error

Types

This section is empty.

Jump to

Keyboard shortcuts

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