integration-examples/loop-test-plugin/plugin.go

19 lines
320 B
Go

package root
import (
_ "embed" // Need to embed plugin.json
"encoding/json"
"strings"
"github.com/mattermost/mattermost/server/public/model"
)
//go:embed plugin.json
var manifestString string
var Manifest model.Manifest
func init() {
_ = json.NewDecoder(strings.NewReader(manifestString)).Decode(&Manifest)
}