Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
goimports -w .
Browse files Browse the repository at this point in the history
  • Loading branch information
anacrolix committed Sep 9, 2021
1 parent 544da44 commit c045959
Show file tree
Hide file tree
Showing 20 changed files with 29 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions dlna/dms/cds.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion dlna/dms/dms.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down
3 changes: 2 additions & 1 deletion dlna/dms/dms_others.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build !linux,!darwin,!windows
//go:build !linux && !darwin && !windows
// +build !linux,!darwin,!windows

package dms

Expand Down
3 changes: 2 additions & 1 deletion dlna/dms/dms_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build linux darwin
//go:build linux || darwin
// +build linux darwin

package dms

Expand Down
3 changes: 2 additions & 1 deletion dlna/dms/dms_unix_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build linux darwin
//go:build linux || darwin
// +build linux darwin

package dms

Expand Down
3 changes: 2 additions & 1 deletion dlna/dms/dms_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build windows
//go:build windows
// +build windows

package dms

Expand Down
1 change: 1 addition & 0 deletions play/attrs.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

package main
Expand Down
1 change: 1 addition & 0 deletions play/bool.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

package main
Expand Down
1 change: 1 addition & 0 deletions play/closure.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

package main
Expand Down
1 change: 1 addition & 0 deletions play/execbug.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

package main
Expand Down
1 change: 1 addition & 0 deletions play/execgood.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

package main
Expand Down
1 change: 1 addition & 0 deletions play/ffprobe.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

package main
Expand Down
1 change: 1 addition & 0 deletions play/mime.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

package main
Expand Down
1 change: 1 addition & 0 deletions play/parse_http_version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

package main
Expand Down
1 change: 1 addition & 0 deletions play/print-ifs.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

package main
Expand Down
1 change: 1 addition & 0 deletions play/scpd.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

package main
Expand Down
1 change: 1 addition & 0 deletions play/soap.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

package main
Expand Down
1 change: 1 addition & 0 deletions play/transcode.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

package main
Expand Down
1 change: 1 addition & 0 deletions play/url.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

package main
Expand Down

0 comments on commit c045959

Please sign in to comment.