entity

package
v0.2.10-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transaction

type Transaction struct {
	Symbol   string
	Date     time.Time
	Quantity int
	Price    float64
	Type     TrasnactionType
}

type Transactions

type Transactions struct {
	Items []Transaction
}

func (*Transactions) Add

func (t *Transactions) Add(item Transaction)

func (Transactions) Count

func (t Transactions) Count() int

type TrasnactionType

type TrasnactionType int
const (
	Buy TrasnactionType = iota
	Sell
)

func (TrasnactionType) String

func (tt TrasnactionType) String() string

Jump to

Keyboard shortcuts

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