plugin.go 298 B

123456789101112131415161718
  1. package root
  2. import (
  3. _ "embed" // Need to embed manifest file
  4. "strings"
  5. "github.com/mattermost/mattermost-server/v5/model"
  6. )
  7. //go:embed plugin.json
  8. var manifestString string
  9. var Manifest model.Manifest
  10. func init() {
  11. Manifest = *model.ManifestFromJson(strings.NewReader(manifestString))
  12. }