docs: mention go modules, fix #2274

This commit is contained in:
Roman Khimov 2022-01-14 23:33:01 +03:00
parent 9c8ba5777e
commit 3cc5c2d9dc

View file

@ -54,6 +54,13 @@ this requires you to set proper `GOROOT` environment variable, like
export GOROOT=/usr/lib64/go/1.15
```
You'll also need to initialize go modules for your contract like this (in the
directory containing contract package):
```
$ go mod init
$ go mod tidy
```
### Compiling
```