pointers

package
v0.0.0-...-7b9876e Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNonExistingKey = DictionaryErr("could find a value mapped to key")
	ErrKeyExists      = DictionaryErr("key already exists")
)

Variables

View Source
var ErrInsufficientFunds = errors.New("cannot withdraw, insufficient funds")

Functions

This section is empty.

Types

type Dictionary

type Dictionary map[string]string

func (Dictionary) Add

func (d Dictionary) Add(key, value string) error

func (Dictionary) Delete

func (d Dictionary) Delete(key string)

func (Dictionary) Search

func (d Dictionary) Search(key string) (string, error)

type DictionaryErr

type DictionaryErr string

func (DictionaryErr) Error

func (de DictionaryErr) Error() string

type Eth

type Eth float64

func (Eth) String

func (e Eth) String() string

type Stringer

type Stringer interface {
	String() string
}

type Wallet

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

func (*Wallet) Balance

func (w *Wallet) Balance() Eth

func (*Wallet) Deposit

func (w *Wallet) Deposit(amount Eth)

func (*Wallet) Withdraw

func (w *Wallet) Withdraw(amount Eth) error

Jump to

Keyboard shortcuts

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