message

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorMessage = iota
	SuccessMessage
	InfoMessage
)
View Source
const (
	ErrorDuration   = 5 * time.Second
	SuccessDuration = 2 * time.Second
	InfoDuration    = 2 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClearMessage

type ClearMessage struct{}

type Message

type Message struct {
	Value   string
	MsgType int
}

func (*Message) AddMessage

func (msg *Message) AddMessage(value string, messageType int)

func (Message) ClearMessage

func (msg Message) ClearMessage(t time.Duration) tea.Cmd

func (*Message) ShowMessage

func (msg *Message) ShowMessage() string

Jump to

Keyboard shortcuts

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