Copy from https://github.com/use-go/onvif
将 struct 中的 \xml:"onvif:XXXX"`更改为`xml:"XXXX"``
将
type GetServicesResponse struct {
Service Service
}改为
type GetServicesResponse struct {
Service []Service
}将
type DeviceServiceCapabilities struct {
Network NetworkCapabilities
Security SecurityCapabilities
System SystemCapabilities
Misc MiscCapabilities
}
改为
type DeviceServiceCapabilities struct {
Network *NetworkCapabilities
Security *SecurityCapabilities
System *SystemCapabilities
Misc *MiscCapabilities
}
将
type EAPMethodTypes struct {
Types []int
}改为
type EAPMethodTypes stringTo install the library, use go get:
go get github.com/VacantHusky/onvif