# README
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/gleich/statuser/v2
š Documentation 
Here is some basic usage:
Error()
Output an error to the user
Parameters
- message
- Type:
string
- Description: A human readable message to help the user
- Type:
- err
- Type:
err
- Description: The golang error
- Type:
- exitCode
- Type:
int
- Description: Exit code used to exit the program
- Type:
Example
Outputs the following in red text:
āāāāāāāāāāāāā
āšØ ERROR šØā
āāāāāāāāāāāāā
message
GOLANG ERROR (SHOW DEVELOPER):
err
exit status 1
ErrorMsg()
Output an error to the user with just a message
Parameters
- message
- Type:
string
- Description: A human readable message to help the user
- Type:
- exitCode
- Type:
int
- Description: Exit code used to exit the program
- Type:
Example
Outputs the following in red text:
āāāāāāāāāāāāā
āšØ ERROR šØā
āāāāāāāāāāāāā
message
exit status 1
Warning()
Output a warning the user
Parameters
- message
- Type:
string
- Description: The warning message to display to the user
- Type:
Example
Outputs the following text in yellow:
ā ļø WARNING ā ļø
message
Success()
Output a warning the user
Parameters
- message
- Type:
string
- Description: The success message to display to the user
- Type:
Example
Outputs the following text in green:
ā
message
Contributors
- Matthew Gleich (@gleich)
š„ Contributors
# Variables
If the output should use emojis.
Error box character.
Error character if emojis are turned off.
Error emoji.
Error text.
Warning character if emojis are turned off.
Success emoji.
Warning text.
Warning character if emojis are turned off.
Warning emoji.
Warning text.