colours

package
v0.0.1-alpha.12 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNocNotFound  = ColoursErr("could not find NOC")
	ErrLineNotFound = ColoursErr("could not find line")
	ErrNocExists    = ColoursErr("NOC already exists, skipping")
	ErrLineExists   = ColoursErr("line already exists, skipping")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Colour

type Colour string

type Colours

type Colours map[Noc]map[Line]Colour

func (Colours) Add

func (c Colours) Add(n Noc, l Line, col Colour) error

func (Colours) AddFromCsv

func (c Colours) AddFromCsv(file io.ReadCloser) error

func (Colours) Get

func (c Colours) Get(n Noc, l Line) (Colour, error)

type ColoursErr

type ColoursErr string

func (ColoursErr) Error

func (e ColoursErr) Error() string

type Line

type Line string

type Noc

type Noc string

Jump to

Keyboard shortcuts

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