Documentation ¶
Index ¶
- func Broadcast(msg io.WriterTo, localIp net.IP, remoteAddr *net.UDPAddr) (err error)
- func DefaultNumber[T Number](value T, defValue T) T
- func DefaultString(value string, defValue string) string
- func DefaultStringFunc(value string, defFunc func() string) string
- func ForAllIPs(skipLoopback bool, fn func(net.IP))
- func InterfaceHasIPv4(nif *net.Interface) bool
- func ListenUdp4Packet(addr string) (net.PacketConn, error)
- func OsVersion() string
- func RenderXML(rw http.ResponseWriter, doc any)
- func SendXML(rw http.ResponseWriter, body []byte)
- type Number
- type TTLCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultNumber ¶
func DefaultNumber[T Number](value T, defValue T) T
func DefaultString ¶
func DefaultStringFunc ¶
func InterfaceHasIPv4 ¶
func ListenUdp4Packet ¶ added in v1.0.2
func ListenUdp4Packet(addr string) (net.PacketConn, error)
func RenderXML ¶
func RenderXML(rw http.ResponseWriter, doc any)
func SendXML ¶
func SendXML(rw http.ResponseWriter, body []byte)
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.