card

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

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

A card is a list of facts. Usually, but not limited to, Q&A format.

func NewCards

func NewCards(file string, cardStr string) ([]*Card, error)

Returns a list of cards, or an empty list if there is an error.

func (*Card) File

func (c *Card) File() string

func (*Card) GetFactEsc

func (c *Card) GetFactEsc(i int) string

func (*Card) HasAnswer

func (c *Card) HasAnswer() bool

func (*Card) Hash

func (c *Card) Hash() (dest internal.Hash)

func (*Card) Len

func (c *Card) Len() int

func (*Card) String

func (c *Card) String() string

type CardMap

type CardMap map[internal.Hash]*Card

Jump to

Keyboard shortcuts

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