diff --git a/README.md b/README.md index 7b951b6..f4256a4 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,8 @@ git clone --depth 1 https://github.com/mattermost/mattermost-plugin-starter-temp Note that this project uses [Go modules](https://github.com/golang/go/wiki/Modules). Be sure to locate the project outside of `$GOPATH`. -Edit `plugin.json` with your `id`, `name`, and `description`: +Edit the following files: +1. `plugin.json` with your `id`, `name`, and `description`: ``` { "id": "com.example.my-plugin", @@ -23,6 +24,19 @@ Edit `plugin.json` with your `id`, `name`, and `description`: } ``` +2. `go.mod` with your Go module path, following the `//` convention: +``` +module github.com/example/my-plugin +``` + +3. `.golangci.yml` with your Go module path: +```yml +linters-settings: + # [...] + goimports: + local-prefixes: github.com/example/my-plugin +``` + Build your plugin: ``` make