With the code below how do I add an IP struct to the Server struct's ips array?
import (
"net"
)
type Server struct {
id int
ips []net.IP
}
func main() {
o := 5
ip := net.ParseIP("127.0.0.1")
server := Server{o, ??ip??}
}
Do I even have the ips array correct? Is it better to use a pointer?