1
0
silverbullet/mattermost-plugin/plugin.go

19 lines
318 B
Go
Raw Normal View History

2022-07-22 11:44:45 +00:00
package root
import (
_ "embed" // Need to embed manifest file
"encoding/json"
"strings"
"github.com/mattermost/mattermost-server/v6/model"
)
//go:embed plugin.json
var manifestString string
var Manifest model.Manifest
func init() {
_ = json.NewDecoder(strings.NewReader(manifestString)).Decode(&Manifest)
}