code: func IPs() []string {
  	ifaces, err := net.Interfaces()
  	if err != nil {
  		return nil
  	}
  
  	var ipAddrs []string
  
  	for _, i := range ifaces {
  		addrs, err := i.Addrs()
  		if err != nil {
  			continue
  		}
  
  		for _, addr := range addrs {
  			var ip net.IP
  			switch v := addr.(type) {
  			case *net.IPNet:
  				ip = v.IP
  			case *net.IPAddr:
  				ip = v.IP
  			}
  
  			if ip == nil {
  				continue
  			}
  
  			ip = ip.To4()
  			if ip == nil {
  				continue
  			}
  
  			ipAddrs = append(ipAddrs, ip.String())
  		}
  	}
  
  	return ipAddrs
  }
docs: // IPs returns all known ips