mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 12:36:38 +08:00
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
|
@ -1,3 +1,5 @@
|
|||
//go:build go1.21
|
||||
|
||||
package dlna
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//go:build go1.21
|
||||
|
||||
package dlna
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//go:build go1.21
|
||||
|
||||
// Package dlna provides DLNA server.
|
||||
package dlna
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//go:build go1.21
|
||||
|
||||
package dlna
|
||||
|
||||
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
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//go:build go1.21
|
||||
|
||||
package dlna
|
||||
|
||||
import (
|
||||
|
|
Loading…
Reference in New Issue
Block a user