forked from TrueCloudLab/rclone
serve dlna: now only supported on go1.21 or later
This is due to use of go1.21 only constructs in github.com/anacrolix/log
This commit is contained in:
parent
dd0e5b9a7f
commit
223d8c5fe3
7 changed files with 21 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
//go:build go1.21
|
||||||
|
|
||||||
package dlna
|
package dlna
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//go:build go1.21
|
||||||
|
|
||||||
package dlna
|
package dlna
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//go:build go1.21
|
||||||
|
|
||||||
// Package dlna provides DLNA server.
|
// Package dlna provides DLNA server.
|
||||||
package dlna
|
package dlna
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//go:build go1.21
|
||||||
|
|
||||||
package dlna
|
package dlna
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
9
cmd/serve/dlna/dlna_unsupported.go
Normal file
9
cmd/serve/dlna/dlna_unsupported.go
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
//go:build !go1.21
|
||||||
|
|
||||||
|
// Package dlna is unsupported on this platform
|
||||||
|
package dlna
|
||||||
|
|
||||||
|
import "github.com/spf13/cobra"
|
||||||
|
|
||||||
|
// Command definition is nil to show not implemented
|
||||||
|
var Command *cobra.Command
|
|
@ -1,3 +1,5 @@
|
||||||
|
//go:build go1.21
|
||||||
|
|
||||||
package dlna
|
package dlna
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//go:build go1.21
|
||||||
|
|
||||||
package dlna
|
package dlna
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
Loading…
Reference in a new issue