Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageType ¶ added in v0.0.5
type MessageType uint8
MessageType represents the classification of message types in the system. Available types: - Normal (0): Standard message without special formatting - Info (1): Informational message usually displayed with distinct styling - Error (2): Error message indicating failures or critical issues - Warning (3): Warning message indicating potential issues - OK (4): Success or confirmation message
const ( Normal MessageType = iota // 0 Info // 1 Error // 2 Warning // 3 OK // 4 )
func DetectMessageType ¶
func DetectMessageType(args ...any) MessageType
DetectMessageType detects the message type based on its content Accepts multiple arguments of any type, processing strings and errors
Click to show internal directories.
Click to hide internal directories.