Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FunLogger ¶
type FunLogger struct { // The logs are `io.Copy`'d to this in a mutex. It's common to set this to a // file, or leave it default which is `os.Stderr`. You can also set this to // something more adventurous, such as logging to Kafka. Out io.Writer // Function to exit the application, defaults to `os.Exit()` ExitFunc exitFunc // Done is a channel that can be used to stop the loading animation. Done chan struct{} // Fail is a channel that can be used to stop the loading animation and print a failure message. Fail chan struct{} // Wg is a WaitGroup that can be used to wait for the loading animation to finish. Wg *sync.WaitGroup // IsCI is a boolean that is set to true if the logger is running in a CI environment. IsCI bool }
FunFonts implements the Logger interface using emojis for messages.
Click to show internal directories.
Click to hide internal directories.