commodities

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commodity

type Commodity struct {
	// contains filtered or unexported fields
}

Commodity represents a currency or security.

func Get

func Get(name string) (*Commodity, error)

Get creates a new commodity.

func (Commodity) MarshalJSON added in v0.0.9

func (c Commodity) MarshalJSON() ([]byte, error)

MarshalJSON marshals a commodity to JSON.

func (Commodity) String

func (c Commodity) String() string

Jump to

Keyboard shortcuts

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