Documentation ¶
Index ¶
- Constants
- 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 GetMimeType(filename string) string
- func GetMimeTypeForExt(ext string) string
- func InterfaceHasIPv4(nif *net.Interface) bool
- func IsImageFile(filename string) 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 ¶
View Source
const (
MimeTypeM3U8 = "application/vnd.apple.mpegurl"
)
Variables ¶
This section is empty.
Functions ¶
func DefaultNumber ¶
func DefaultNumber[T Number](value T, defValue T) T
func DefaultString ¶
func DefaultStringFunc ¶
func GetMimeType ¶ added in v1.0.4
func GetMimeTypeForExt ¶ added in v1.0.4
func InterfaceHasIPv4 ¶
func IsImageFile ¶ added in v1.0.4
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 ¶
Click to show internal directories.
Click to hide internal directories.