Update information about installation

'go get' not work with go >=v1.18 
see https://go.dev/doc/go-get-install-deprecation
This commit is contained in:
Mickael Desgranges 2022-07-09 18:04:15 +02:00 committed by GitHub
parent 4231f068f1
commit 6ea4688b73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,12 +31,18 @@ brew update && brew install mailhog
Then, start MailHog by running `mailhog` in the command line.
#### Debian / Ubuntu
#### Debian / Ubuntu Go < v1.18
```bash
sudo apt-get -y install golang-go
go get github.com/mailhog/MailHog
```
#### Go >= v1.17 (Debian Bookworm)
```bash
sudo apt-get -y install golang-go
go install github.com/mailhog/MailHog@latest
```
Then, start MailHog by running `/path/to/MailHog` in the command line.
E.g. the path to Go's bin files on Ubuntu is `~/go/bin/`, so to start the MailHog run: