Update main.go (#154)

This commit is contained in:
Chetanya Kandhari 2021-06-01 13:08:41 +05:30 committed by GitHub
parent ca9ee3c17c
commit be4a281d0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,27 +9,6 @@ import (
"github.com/pkg/errors"
)
const pluginIDGoFileTemplate = `// This file is automatically generated. Do not modify it manually.
package main
import (
"strings"
"github.com/mattermost/mattermost-server/v5/model"
)
var manifest *model.Manifest
const manifestStr = ` + "`" + `
%s
` + "`" + `
func init() {
manifest = model.ManifestFromJson(strings.NewReader(manifestStr))
}
`
func main() {
if len(os.Args) <= 1 {
panic("no cmd specified")