Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Raisan authored May 19, 2022
1 parent 10218b9 commit b8cb550
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ package gocolor

var defalt string = "\u001b[0m"

func Defalt(text string) string {
result := "\u001b[0m" + text
return result
}

func Red(text string) string {
result := "\u001b[31m" + text + defalt
return result
Expand Down

0 comments on commit b8cb550

Please sign in to comment.