ip := net.ParseIP("192.168.0.1")
ipNet, err := net.ParseCIDR("192.168.0.0/24")
ip := net.ParseIP("192.168.0.1") ipNet, _ := net.ParseCIDR("192.168.0.0/24") if ipNet.Contains(ip) { fmt.Println("IP address is in the network") }Package library: The package library for the go net IP package can be determined as "net" since it is part of the standard library in Go.