Merge pull request #2326 from nspcc-dev/doc-go-mod-compiler-requirement

docs: mention go modules, fix #2274
This commit is contained in:
Roman Khimov 2022-01-16 21:45:10 +03:00 committed by GitHub
commit 4cc5957c3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
```