vanguard

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VanguardPlugin = vanguardPlugin{
	// contains filtered or unexported fields
}

VanguardPlugin is the exported plugin for this package

Functions

This section is empty.

Types

type CardNames

type CardNames struct {
	// Names are the card names.
	Names []string
	// Counts is a map of card name to count (number of this card in the deck).
	Counts map[string]int
}

CardNames contains the card names and their count.

func NewCardNames

func NewCardNames() *CardNames

NewCardNames creates a new CardNames struct.

func (*CardNames) Count

func (c *CardNames) Count(name string) int

Count return the number of cards for a given name.

func (*CardNames) Insert

func (c *CardNames) Insert(name string)

Insert a new card in a CardNames struct.

func (*CardNames) InsertCount

func (c *CardNames) InsertCount(name string, count int)

InsertCount inserts several new cards in a CardNames struct.

func (*CardNames) String

func (c *CardNames) String() string

String representation of a CardNames struct.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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