doc: update README to use valid go.mod example syntax (#39)
This commit simply uses parenthesis in the example `go.mod` `require` block since curly braces are illegal there. If a potential user copies the text as the basis for starting a new `go.mod`, they'll get cryptic compilation errors.
This commit is contained in:
parent
10a9a0f557
commit
599adb6b2d
1 changed files with 3 additions and 3 deletions
|
|
@ -27,10 +27,10 @@ crypto library](https://github.com/ProtonMail/crypto).
|
|||
To use this library using [Go Modules](https://github.com/golang/go/wiki/Modules) just edit your
|
||||
`go.mod` configuration to contain:
|
||||
```gomod
|
||||
require {
|
||||
require (
|
||||
...
|
||||
github.com/ProtonMail/gopenpgp/v2 v2.0.0
|
||||
}
|
||||
)
|
||||
|
||||
replace golang.org/x/crypto => github.com/ProtonMail/crypto v0.0.0-20191122234321-e77a1f03baa0
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue