From d3786e75dd37de87548942e72d509034b7fffa4f Mon Sep 17 00:00:00 2001 From: moussetc Date: Fri, 16 Oct 2020 13:01:54 +0200 Subject: [PATCH] Update README with files to edit manually (#133) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Alejandro GarcĂ­a Montoro --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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