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 GetAbsoluteUrl(originUrl, relativePath string) string
- func GetBaseUrl(rawUrl string) string
- func GetMimeType(filename string) string
- func GetMimeTypeForExt(ext string) string
- func GetRootUrl(rawUrl 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
Constants ¶
View Source
const ( MimeTypeM3U8 = "application/vnd.apple.mpegurl" MimeTypeM2TS = "video/mp2t" MimeTypeDefault = "application/octet-stream" )
Variables ¶
This section is empty.
Functions ¶
func DefaultNumber ¶
func DefaultNumber[T Number](value T, defValue T) T
func DefaultString ¶
func DefaultStringFunc ¶
func GetAbsoluteUrl ¶ added in v1.1.0
func GetBaseUrl ¶ added in v1.1.0
func GetMimeType ¶ added in v1.0.4
func GetMimeTypeForExt ¶ added in v1.0.4
func GetRootUrl ¶ added in v1.1.0
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 ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.