util

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 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 FirstNonEmptyString added in v2.2.0

func FirstNonEmptyString(strs ...string) 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 Open added in v2.4.0

func Open(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