IP Address Int to Dotted Quad

🎓 A collection of things I've learned


IP Address Int To Dotted Quad

package main

import (
	"fmt"
)

func main() {
	a := 3628584131

	fmt.Printf("%d.%d.%d.%d\n", byte(a>>24), byte(a>>16), byte(a>>8), byte(a))
}

>> 216.71.204.195