Skip to content

Instantly share code, notes, and snippets.

View abhimanyu003's full-sized avatar
🏠
Running Remotely 🏃‍♂️

Abhimanyu Sharma abhimanyu003

🏠
Running Remotely 🏃‍♂️
View GitHub Profile
@ik5
ik5 / colors.go
Last active April 8, 2024 14:25
Simple golang expirement with ANSI colors
package main
// http://play.golang.org/p/jZ5pa944O1 <- will not display the colors
import "fmt"
const (
InfoColor = "\033[1;34m%s\033[0m"
NoticeColor = "\033[1;36m%s\033[0m"
WarningColor = "\033[1;33m%s\033[0m"
ErrorColor = "\033[1;31m%s\033[0m"
DebugColor = "\033[0;36m%s\033[0m"