Commit 79b71854 authored by Harel Ben-Attia's avatar Harel Ben-Attia Committed by Chris Molozian
Browse files

Update Go module README with version guidelines. (#395)

parent a36eddb1
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -43,10 +43,13 @@ To setup your own project to build modules for the game server you can follow th

    ```bash
    go mod init my-plugin-project
    go get -u "github.com/heroiclabs/nakama-common@v1.1.1"
    go get -u "github.com/heroiclabs/nakama-common@v1.0.0"
    ```
   
   ⚠️ __NOTE__: If you're working on Nakama's master branch drop the `@v1.1.1` from the above snippet.
   ⚠️ __NOTE__: If you're working on Nakama's master branch drop the `@v1.0.0` from the above snippet.

   ⚠️ __NOTE__: The official Nakama v2.7.0 expects nakama-common v1.0.0 in order to run. If you use v1.1.1 or drop the version reference, you might get a `plugin was built with a different version of package` error while starting up the nakama server. 

4. Develop your plugin code (you can use the [minimal example](#minimal-example) as a starting point) and save it within your plugin project directory with the `.go` extension.

## Build & load process