I recently updated my Go library from v1.14.x to v1.15.3 in my Raspberry Pi 4.
All my projects using Gorilla Mux have stopped from working!
I always used Linux/ARMv6 versions of Go (not officially ported for Raspberry, I think) and until v1.14.x they worked.
You can test my issue with this simple piece of code:
Is the Go compiler directly from golang.org or provided by OS?
Since you’re using linux/armv6l, I’m assuming your Raspberry Pi is 3 and above, right?
If 1 is not, can you do an alignment with the go compiler setup according to the golang.org please? Experience from Ubuntu OS native package indicated that sometimes, OS maintainer tends to mess around with the compiler’s contents (e.g. shift out documents to match OS documentation place).
I do not have any issue with x86_64 with your source code.
u0:test$ go mod init test
go: creating new go.mod: module test
u0:test$ go get github.com/gorilla/mux
go: downloading github.com/gorilla/mux v1.8.0
go: github.com/gorilla/mux upgrade => v1.8.0
u0:test$ go run main.go