Skip to content

Instantly share code, notes, and snippets.

package main
import (
. "github.com/IkiM0no/simplelog"
)
func main() {
l, err := NewLogger("foo_app")
if err != nil {
panic(err)
@IkiM0no
IkiM0no / normalize_mac.go
Last active October 12, 2018 14:58
normalize mac address to standard format
package main
import (
"log"
"regexp"
"strings"
)
var macRegex = regexp.MustCompile(`^([0-9A-Fa-f]{2}[:-]?){5}([0-9A-Fa-f]{2})$`)