statuser
π£ A user friendly status outputting library for go

π Installing
Simply run the command below in the root of your go project:
go get -u github.com/Matt-Gleich/statuser
π Documentation
Emojis
By default emojis are turned on. If you wish to disable them then just do emojis = false
in your go code.
Error()
Output an error to the user
Parameters
- message
- Type:
string
- Description: A human readable message to help the user
- err
- Type:
err
- Description: The golang error
- exitCode
- Type:
int
- Description: Exit code used to exit the program
Example
Outputs the following in red text:
βββββββββββββ
βπ¨ ERROR π¨β
βββββββββββββ
message
GOLANG ERROR (SHOW DEVELOPER):
err
exit status 1
Warning()
Output a warning the the user
Parameters
- message
- Type:
string
- Description: The warning message to display to the user
Example
Outputs the following text in yellow:
β οΈ WARNING β οΈ
message
Success()
Parameters
- message
- Type:
string
- Description: The success message to display to the user
Example
Outputs the following text in green:
β
SUCCESS β
message
Contributors
- Matthew Gleich (@Matt-Gleich)