Go run server.go error start

error
go: errors parsing go.mod:
C:\Users\baris\OneDrive\Masaüstü\email-golang\go.mod:1: no matching versions for query “v1.19”
go.mod

require github.com/gorilla/mux v1.19 // indirect

go 1.19

module example.com/mod

go.sum

github.com/gorilla/mux v1.19 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI=
github.com/gorilla/mux v1.19 /go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=

Hi, the latest version of Gorilla mux is 1.18 importing it with go get -u github.com/gorilla/mux.

I typed this in terminal “go get -u GitHub - gorilla/mux: A powerful HTTP router and URL matcher for building Go web servers with 🦍

i got this error go: errors parsing go.mod:
C:\Users\baris\OneDrive\Masaüstü\email-golang\go.mod:1: no matching versions for query “v1.18”

use go get -v -u github.com/gorilla/mux@latest or go get -v -u github.com/gorilla/mux@v1.8.0 get latest version.

mux github tags:

image

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.