templates

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flash

type Flash struct {
	Message string
	Type    FlashType
}

func ErrorFlash

func ErrorFlash(message string) Flash

func Flashes

func Flashes(templates ...Flash) []Flash

func InfoFlash

func InfoFlash(message string) Flash

func SuccessFlash

func SuccessFlash(message string) Flash

func (Flash) BorderColor

func (f Flash) BorderColor() string

func (Flash) IsError

func (f Flash) IsError() bool

func (Flash) IsInfo

func (f Flash) IsInfo() bool

func (Flash) IsSuccess

func (f Flash) IsSuccess() bool

type FlashType

type FlashType string
const (
	FlashTypeSuccess FlashType = "success"
	FlashTypeError   FlashType = "error"
	FlashTypeInfo    FlashType = "info"
)

Jump to

Keyboard shortcuts

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