cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BoldGreen = color.New(color.FgHiGreen, color.Bold).SprintFunc()
View Source
var BoldRed = color.New(color.FgHiRed, color.Bold).SprintFunc()
View Source
var Green = color.New(color.FgHiGreen).SprintFunc()

Functions

func PrintServerError

func PrintServerError(errorOrMessage interface{})

func PrintUIError

func PrintUIError(message string)

Types

type ClientConfig

type ClientConfig struct {
	BgColor   string `json:"bg-color"`
	Count     int    `json:"count"`
	Duration  int    `json:"duration"`
	FontColor string `json:"font-color"`
	FontSize  int    `json:"font-size"`
}

func ReadConfig

func ReadConfig(path string) *ClientConfig

Jump to

Keyboard shortcuts

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