message

package
v0.0.0-...-0cbbf0d Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package message provides simple text message communication.

Index

Constants

View Source
const (
	Debug = iota
	Info
	Error
)

Message severities. INFO messages and above will end up in the statusbar.

View Source
const (
	Normal = iota
	SequenceText
)

Message types.

Variables

This section is empty.

Functions

func Log

func Log(msg Message)

Log prints a message to the debug log.

Types

type Message

type Message struct {
	Text     string
	Severity int
	Type     int
}

Message is a message passed from anywhere inside PMS, relayed to the user through the statusbar.

func Errorf

func Errorf(fmt string, a ...interface{}) Message

Errorf returns a normal error message.

func Format

func Format(fmt string, a ...interface{}) Message

Format returns a normal info message.

func Sequencef

func Sequencef(fmt string, a ...interface{}) Message

Sequencef returns a sequence text message.

Jump to

Keyboard shortcuts

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