forked from TrueCloudLab/neoneo-go
Merge pull request #2326 from nspcc-dev/doc-go-mod-compiler-requirement
docs: mention go modules, fix #2274
This commit is contained in:
commit
4cc5957c3a
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue