Brijesh's Git Server — network-scan @ 822d6b35dfdd5e88f2265b6f75d63224ef140964

my own tool to scan for devices in local network, beyond just arp -a

utils/printInColor.go (view raw)

 1
 2
 3
 4
 5
 6
 7
package utils

import "fmt"

func PrintInColor(text string, color int) {
	fmt.Printf("\x1b[38;5;%dm%s\x1b[0m\n", color, text)
}