docs: mention go modules, fix #2274
This commit is contained in:
parent
9c8ba5777e
commit
3cc5c2d9dc
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
|
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
|
### Compiling
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue