This repository has been archived on 2024-11-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
mattermost-plugin-attachmen.../plugin.go

18 lines
322 B
Go

package root
import (
_ "embed" // Need to embed manifest file
"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)
}