Closed TechDufus closed 1 year ago
Hi, @TechDufus! Thanks. Seems like we need to update docs 👍 Could you try these commands?:
# clean your go mod cache
go clean -modcache
# init your go.mod if it not exists
go mod init you_module_name
# install smtpmock
go get github.com/mocktools/go-smtp-mock/v2
go install github.com/mocktools/go-smtp-mock/v2
After you can add smtpmock
into your code:
// main.go
package main
import smtpmock "github.com/mocktools/go-smtp-mock/v2"
func main() {
smtpmock.ConfigurationAttr{}
}
That's all.
This did the trick... THANK YOU... Now I'm off to break this mock implementation.... ;)
Good luck 😃
New bug checklist
smtpmock
to the latest versionBug description
When following the instructions on installing / importing in Go, I'm running into the following issue...
Install smtpmock:
Output: go: github.com/mocktools/go-smtp-mock/v2/smtpmock@latest: module github.com/mocktools/go-smtp-mock/v2@latest found (v2.0.1), but does not contain package github.com/mocktools/go-smtp-mock/v2/smtpmock
Import statement error in go package:
Am I doing something obviously wrong?
I'm using
go version go1.19.3 linux/amd64