Skip to content

Commit

Permalink
Change text color from FgHiWhite to White (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
FollowTheProcess committed Jul 5, 2024
1 parent f4095a9 commit 4c4c1dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func Success(format string, a ...any) {
// msg.Fsuccess(os.Stdout, "Compiled project: %s", "msg")
func Fsuccess(w io.Writer, format string, a ...any) {
success := color.New(colorSuccess, color.Bold)
message := color.New(color.FgHiWhite)
message := color.New(color.FgWhite)

fmt.Fprintf(w, "%s: %s\n", success.Sprint(statusSuccess), message.Sprintf(format, a...))
}
Expand All @@ -73,7 +73,7 @@ func Error(format string, a ...any) {
// msg.Ferror(os.Stderr, "Uh oh! %s", "something wrong")
func Ferror(w io.Writer, format string, a ...any) {
e := color.New(colorError, color.Bold)
message := color.New(color.FgHiWhite)
message := color.New(color.FgWhite)

fmt.Fprintf(w, "%s: %s\n", e.Sprint(statusError), message.Sprintf(format, a...))
}
Expand All @@ -94,7 +94,7 @@ func Warn(format string, a ...any) {
// msg.Fwarn(os.Stderr, "hmmmm: %v", true)
func Fwarn(w io.Writer, format string, a ...any) {
warn := color.New(colorWarn, color.Bold)
message := color.New(color.FgHiWhite)
message := color.New(color.FgWhite)

fmt.Fprintf(w, "%s: %s\n", warn.Sprint(statusWarn), message.Sprintf(format, a...))
}
Expand All @@ -115,7 +115,7 @@ func Info(format string, a ...any) {
// msg.Finfo(os.Stdout, "The meaning of life is %v", 42)
func Finfo(w io.Writer, format string, a ...any) {
info := color.New(colorInfo, color.Bold)
message := color.New(color.FgHiWhite)
message := color.New(color.FgWhite)

fmt.Fprintf(w, "%s: %s\n", info.Sprint(statusInfo), message.Sprintf(format, a...))
}
Expand Down

0 comments on commit 4c4c1dd

Please sign in to comment.