diff --git a/bindata.go b/bindata.go index 8544a4f..56a4c28 100644 --- a/bindata.go +++ b/bindata.go @@ -182,6 +182,7 @@ type bintree struct { Func func() (*asset, error) Children map[string]*bintree } + var _bintree = &bintree{nil, map[string]*bintree{ "data": &bintree{nil, map[string]*bintree{ "VGC Sonic.png": &bintree{dataVgcSonicPng, map[string]*bintree{}}, @@ -234,4 +235,3 @@ func _filePath(dir, name string) string { cannonicalName := strings.Replace(name, "\\", "/", -1) return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...) } - diff --git a/dlna/dms/cds.go b/dlna/dms/cds.go index 5b23c13..b394c85 100644 --- a/dlna/dms/cds.go +++ b/dlna/dms/cds.go @@ -250,10 +250,10 @@ func (me *contentDirectoryService) Handle(action string, argsXML []byte, r *http return nil, err } return [][2]string{ - {"Result", didl_lite(string(result))}, + {"Result", didl_lite(string(result))}, {"NumberReturned", fmt.Sprint(len(objs))}, - {"TotalMatches", fmt.Sprint(totalMatches)}, - {"UpdateID", me.updateIDString()}, + {"TotalMatches", fmt.Sprint(totalMatches)}, + {"UpdateID", me.updateIDString()}, }, nil case "BrowseMetadata": fileInfo, err := os.Stat(obj.FilePath()) @@ -275,10 +275,10 @@ func (me *contentDirectoryService) Handle(action string, argsXML []byte, r *http return nil, err } return [][2]string{ - {"Result", didl_lite(func() string { return string(buf) }())}, + {"Result", didl_lite(func() string { return string(buf) }())}, {"NumberReturned", "1"}, - {"TotalMatches", "1"}, - {"UpdateID", me.updateIDString()}, + {"TotalMatches", "1"}, + {"UpdateID", me.updateIDString()}, }, nil default: return nil, upnp.Errorf(upnp.ArgumentValueInvalidErrorCode, "unhandled browse flag: %v", browse.BrowseFlag) diff --git a/dlna/dms/dms.go b/dlna/dms/dms.go index f554261..f69f959 100644 --- a/dlna/dms/dms.go +++ b/dlna/dms/dms.go @@ -508,7 +508,7 @@ func handleSCPDs(mux *http.ServeMux) { // Marshal SOAP response arguments into a response XML snippet. func marshalSOAPResponse(sa upnp.SoapAction, args [][2]string) []byte { soapArgs := make([]soap.Arg, 0, len(args)) - for _, arg := range args { + for _, arg := range args { argName, value := arg[0], arg[1] soapArgs = append(soapArgs, soap.Arg{ XMLName: xml.Name{Local: argName}, diff --git a/dlna/dms/dms_others.go b/dlna/dms/dms_others.go index fd4d6b4..5540261 100644 --- a/dlna/dms/dms_others.go +++ b/dlna/dms/dms_others.go @@ -1,4 +1,5 @@ -//+build !linux,!darwin,!windows +//go:build !linux && !darwin && !windows +// +build !linux,!darwin,!windows package dms diff --git a/dlna/dms/dms_unix.go b/dlna/dms/dms_unix.go index b52b42d..67f0df0 100644 --- a/dlna/dms/dms_unix.go +++ b/dlna/dms/dms_unix.go @@ -1,4 +1,5 @@ -//+build linux darwin +//go:build linux || darwin +// +build linux darwin package dms diff --git a/dlna/dms/dms_unix_test.go b/dlna/dms/dms_unix_test.go index cd48604..e6b279c 100644 --- a/dlna/dms/dms_unix_test.go +++ b/dlna/dms/dms_unix_test.go @@ -1,4 +1,5 @@ -//+build linux darwin +//go:build linux || darwin +// +build linux darwin package dms diff --git a/dlna/dms/dms_windows.go b/dlna/dms/dms_windows.go index 03b0513..14db0e4 100644 --- a/dlna/dms/dms_windows.go +++ b/dlna/dms/dms_windows.go @@ -1,4 +1,5 @@ -//+build windows +//go:build windows +// +build windows package dms diff --git a/play/attrs.go b/play/attrs.go index 3902357..44bea14 100644 --- a/play/attrs.go +++ b/play/attrs.go @@ -1,3 +1,4 @@ +//go:build ignore // +build ignore package main diff --git a/play/bool.go b/play/bool.go index be40e15..ad21ae5 100644 --- a/play/bool.go +++ b/play/bool.go @@ -1,3 +1,4 @@ +//go:build ignore // +build ignore package main diff --git a/play/closure.go b/play/closure.go index af06655..4fe22fa 100644 --- a/play/closure.go +++ b/play/closure.go @@ -1,3 +1,4 @@ +//go:build ignore // +build ignore package main diff --git a/play/execbug.go b/play/execbug.go index 2862238..df38b3a 100644 --- a/play/execbug.go +++ b/play/execbug.go @@ -1,3 +1,4 @@ +//go:build ignore // +build ignore package main diff --git a/play/execgood.go b/play/execgood.go index b460fab..20893f3 100644 --- a/play/execgood.go +++ b/play/execgood.go @@ -1,3 +1,4 @@ +//go:build ignore // +build ignore package main diff --git a/play/ffprobe.go b/play/ffprobe.go index 946e73c..9246b5a 100644 --- a/play/ffprobe.go +++ b/play/ffprobe.go @@ -1,3 +1,4 @@ +//go:build ignore // +build ignore package main diff --git a/play/mime.go b/play/mime.go index 5cdc210..1f50719 100644 --- a/play/mime.go +++ b/play/mime.go @@ -1,3 +1,4 @@ +//go:build ignore // +build ignore package main diff --git a/play/parse_http_version.go b/play/parse_http_version.go index 65c8005..6355930 100644 --- a/play/parse_http_version.go +++ b/play/parse_http_version.go @@ -1,3 +1,4 @@ +//go:build ignore // +build ignore package main diff --git a/play/print-ifs.go b/play/print-ifs.go index 88faf63..f2a8d08 100644 --- a/play/print-ifs.go +++ b/play/print-ifs.go @@ -1,3 +1,4 @@ +//go:build ignore // +build ignore package main diff --git a/play/scpd.go b/play/scpd.go index 403c030..d2d9ee8 100644 --- a/play/scpd.go +++ b/play/scpd.go @@ -1,3 +1,4 @@ +//go:build ignore // +build ignore package main diff --git a/play/soap.go b/play/soap.go index 38e1f35..57d145e 100644 --- a/play/soap.go +++ b/play/soap.go @@ -1,3 +1,4 @@ +//go:build ignore // +build ignore package main diff --git a/play/transcode.go b/play/transcode.go index cc2cc93..41a59b3 100644 --- a/play/transcode.go +++ b/play/transcode.go @@ -1,3 +1,4 @@ +//go:build ignore // +build ignore package main diff --git a/play/url.go b/play/url.go index 83aad3a..9dcbd09 100644 --- a/play/url.go +++ b/play/url.go @@ -1,3 +1,4 @@ +//go:build ignore // +build ignore package main