We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe8f96e commit 48db2deCopy full SHA for 48db2de
toast.go
@@ -1,11 +1,12 @@
1
package goaster
2
3
+// Toast holds a message and its level.
4
type Toast struct {
5
Message string
- Level Level // Assuming ToastLevel is defined as before
6
+ Level Level
7
}
8
-// NewToast creates and returns a new Message with the specified text and level.
9
+// NewToast creates a new Toast with a message and level.
10
func NewToast(msg string, level Level) Toast {
11
return Toast{
12
Message: msg,
0 commit comments