buffer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(colour Colour, message string)

func Logln

func Logln(colour Colour, message string)

Types

type Buffer

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

func NewBuffer

func NewBuffer(trigger func(event fsnotify.Event)) *Buffer

func (*Buffer) NewEvent

func (b *Buffer) NewEvent(event fsnotify.Event)

type CmdBuffer

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

func NewCmdBuffer

func NewCmdBuffer(duration time.Duration, fn func()) *CmdBuffer

func (*CmdBuffer) Call

func (b *CmdBuffer) Call()

type Colour

type Colour string
const (
	RESET  Colour = "\033[0m"
	RED    Colour = "\033[31m"
	GREEN  Colour = "\033[32m"
	YELLOW Colour = "\033[33m"
	BLUE   Colour = "\033[34m"
	PURPLE Colour = "\033[35m"
	CYAN   Colour = "\033[36m"
)

Jump to

Keyboard shortcuts

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