app

package
v0.0.0-...-2b49957 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(name string) *App

func (*App) LoadImage

func (a *App) LoadImage(url string) (image.Image, error)

func (*App) Run

func (a *App) Run()

func (*App) SaveImage

func (a *App) SaveImage(url string, img image.Image)

type Coin

type Coin struct {
	Symbol string `json:"symbol"`
	Name   string `json:"name"`
}

type Coins

type Coins struct {
	Coins []Coin `json:"coins"`
}

type Settings

type Settings struct {
	APIKey   string        `json:"coinmarketcap_api_key"`
	Currency string        `json:"currency"`
	Interval time.Duration `json:"refresh_interval"`
}

Jump to

Keyboard shortcuts

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