You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running your tutorial: "Writing a unit test in Go" on go version go1.16.5 darwin/amd64, I get the following error:
go: go.mod file not found in current directory or any parent directory; see 'go help modules'
Consider adding a go.mod file here & updating that video?
# file go.mod
module example.com/mod
(Also not, this video tests the code from "Writing a Function that Multiplies a Number by Two in Go", not the video that directly precedes it: "Returning Multiple Values from a Function in Go". So you have to revert your function first before running the test.)
Thanks for the videos. I enjoyed them.
The text was updated successfully, but these errors were encountered:
Hello, Just a heads up...
https://egghead.io/lessons/egghead-writing-a-unit-test-in-go
When running your tutorial: "Writing a unit test in Go" on go version go1.16.5 darwin/amd64, I get the following error:
Consider adding a
go.mod
file here & updating that video?(Also not, this video tests the code from "Writing a Function that Multiplies a Number by Two in Go", not the video that directly precedes it: "Returning Multiple Values from a Function in Go". So you have to revert your function first before running the test.)
Thanks for the videos. I enjoyed them.
The text was updated successfully, but these errors were encountered: