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:
Nick Craig-Wood 2024-01-13 17:14:16 +00:00
parent dd0e5b9a7f
commit 223d8c5fe3
7 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,5 @@
//go:build go1.21
package dlna
import (

View File

@ -1,3 +1,5 @@
//go:build go1.21
package dlna
import (

View File

@ -1,3 +1,5 @@
//go:build go1.21
// Package dlna provides DLNA server.
package dlna

View File

@ -1,3 +1,5 @@
//go:build go1.21
package dlna
import (

View 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

View File

@ -1,3 +1,5 @@
//go:build go1.21
package dlna
import (

View File

@ -1,3 +1,5 @@
//go:build go1.21
package dlna
import (