Skip to content

Commit c8673eb

Browse files
committed
moved backend imports to all package
1 parent d206f68 commit c8673eb

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

cmd/catnip/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import (
1212
"github.com/noriah/catnip/input"
1313
"github.com/noriah/catnip/processor"
1414

15-
_ "github.com/noriah/catnip/input/ffmpeg"
16-
_ "github.com/noriah/catnip/input/parec"
15+
_ "github.com/noriah/catnip/input/all"
1716

1817
"github.com/integrii/flaggy"
1918
"github.com/pkg/errors"

input/all/all.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Package all imports all backends implemented by the input package.
2+
package all
3+
4+
import (
5+
_ "github.com/noriah/catnip/input/ffmpeg"
6+
_ "github.com/noriah/catnip/input/parec"
7+
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//go:build cgo && withportaudio
22

3-
package main
3+
package all
44

55
import _ "github.com/noriah/catnip/input/portaudio"

0 commit comments

Comments
 (0)