common

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorText

func ErrorText(text string) string

func InfoText

func InfoText(text string) string

func SuccessText

func SuccessText(text string) string

func WarningText

func WarningText(text string) string

Types

type ErrMsg

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

func NewErrMsg

func NewErrMsg(text string, a ...any) *ErrMsg

func (*ErrMsg) GetText

func (m *ErrMsg) GetText() string

type InfoMsg

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

func NewInfoMsg

func NewInfoMsg(text string, a ...any) *InfoMsg

func (*InfoMsg) GetText

func (m *InfoMsg) GetText() string

type Msg

type Msg interface {
	GetText() string
}

type RegularMsg

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

func NewRegularMsg

func NewRegularMsg(text string, a ...any) *RegularMsg

func (*RegularMsg) GetText

func (m *RegularMsg) GetText() string

type SuccessMsg

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

func NewSuccessMsg

func NewSuccessMsg(text string, a ...any) *SuccessMsg

func (*SuccessMsg) GetText

func (m *SuccessMsg) GetText() string

type WarnMsg

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

func NewWarnMsg

func NewWarnMsg(text string, a ...any) *WarnMsg

func (*WarnMsg) GetText

func (m *WarnMsg) GetText() string

Jump to

Keyboard shortcuts

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