Skip to content

Commit 9eba13a

Browse files
authored
Create log.go
1 parent f8638df commit 9eba13a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

log/log.go

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package log
2+
import (
3+
"fmt"
4+
)
5+
6+
func Error( msg string ) {
7+
errorMsg := "\x1b[31;1m[ERROR]"
8+
errorMsg += "\033[0m"
9+
10+
fmt.Println( errorMsg, msg )
11+
}

0 commit comments

Comments
 (0)