feat(spinner): periods of ellipsis

Handy for animating the three periods after a string, i.e. "Loading..."
This commit is contained in:
Christian Rocha
2023-05-05 14:15:12 -04:00
parent afb975b469
commit e9dfea975f
+4
View File
@@ -83,6 +83,10 @@ var (
Frames: []string{"☱", "☲", "☴", "☲"},
FPS: time.Second / 3, //nolint:gomnd
}
Ellipsis = Spinner{
Frames: []string{"", ".", "..", "..."},
FPS: time.Second / 3, //nolint:gomnd
}
)
// Model contains the state for the spinner. Use New to create new models