util

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ASCII_ASPECT_RATION = 4.0 / 1.0
)

Variables

View Source
var Logger *log.Logger

Functions

func FormatParagraphs added in v0.0.7

func FormatParagraphs(paragraphs []string, width int, s config.Style) string

func ImageToAscii added in v0.1.1

func ImageToAscii(img image.Image, width uint, height uint, colored bool) [][]string

func Max

func Max(a, b int) int

func Min

func Min(a, b int) int

func SetLogFile added in v0.0.7

func SetLogFile(filePath string) error

Types

type Opener added in v0.0.7

type Opener struct {
	// contains filtered or unexported fields
}

func NewOpener added in v0.0.7

func NewOpener(apps config.Applications) Opener

func (Opener) OpenUrl added in v0.0.7

func (o Opener) OpenUrl(t ResourceType, url string)

type ResourceType added in v0.1.2

type ResourceType int
const (
	TypeImage ResourceType = iota
	TypeAudio
	TypeVideo
	TypeHTML
)

Jump to

Keyboard shortcuts

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