file

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EditCards

func EditCards(filename string, cfg *internal.Config) ([]*card.Card, error)

func ReadCardsFromFile

func ReadCardsFromFile(filename string) ([]*card.Card, error)

Open opens filename and loads cards into new deck

func ReadCardsFromReader

func ReadCardsFromReader(r io.Reader, f string) []*card.Card

func ReadOutcomesFromFile

func ReadOutcomesFromFile(filename string) []*meta.Outcome

Open filename and loads cards into new deck

func ReadOutcomesFromReader

func ReadOutcomesFromReader(r io.Reader) []*meta.Outcome

func ReadPredictsFromFile

func ReadPredictsFromFile(filename string) []*meta.Predict

Open filename and loads cards into new deck

func ReadPredictsFromReader

func ReadPredictsFromReader(r io.Reader) []*meta.Predict

func WriteOutcomesToFile

func WriteOutcomesToFile(l []*meta.Outcome, filename string) error

TODO: clean me up please.

func WriteOutcomesToString

func WriteOutcomesToString(l []*meta.Outcome) string

func WritePredictsToFile

func WritePredictsToFile(l []*meta.Predict, filename string) error

func WritePredictsToString

func WritePredictsToString(l []*meta.Predict) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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