Closed russsharek closed 2 years ago
~/tut-1.0.2 $ go build
feed/feed.go:109:28: f.loadingNewer.mux.TryLock undefined (type sync.Mutex has no field or method TryLock) feed/feed.go:127:28: f.loadingOlder.mux.TryLock undefined (type sync.Mutex has no field or method TryLock)
I think you need to update your version of Go, because TryLock seems to have been introduced in version 1.18
$ go version go version go1.17.7 openbsd/amd64
Mystery solved. Thank you!
~/tut-1.0.2 $ go build
github.com/RasmusLindroth/tut/feed
feed/feed.go:109:28: f.loadingNewer.mux.TryLock undefined (type sync.Mutex has no field or method TryLock) feed/feed.go:127:28: f.loadingOlder.mux.TryLock undefined (type sync.Mutex has no field or method TryLock)