Add support for build tags (#1054)

By default all bridges are available.

You can turn off certain bridges by providing
e.g. "nodiscord" as a build tag.

    go build -tags nomsteams,noapi
This commit is contained in:
Qais Patankar
2020-03-22 17:34:14 +00:00
committed by GitHub
parent 0e4973e15c
commit 2b7eab629d
17 changed files with 181 additions and 40 deletions

View File

@@ -0,0 +1,11 @@
// +build !nomatrix
package bridgemap
import (
bmatrix "github.com/42wim/matterbridge/bridge/matrix"
)
func init() {
FullMap["matrix"] = bmatrix.New
}