util

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColortoHexString

func ColortoHexString(color tcell.Color) string

func GetYearAndRace

func GetYearAndRace(input string) (string, string, error)

takes year/race ID and returns full year and race nuber as strings

func HexStringToColor

func HexStringToColor(hex string) tcell.Color

func OpenBrowser

func OpenBrowser(url string) error

Types

type Logger

type Logger interface {
	io.Writer
	Infof(msg string, args ...interface{})
	Info(args ...interface{})
	Errorf(msg string, args ...interface{})
	Error(args ...interface{})
}

Jump to

Keyboard shortcuts

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