gorilla / mux

Package gorilla/mux is a powerful HTTP router and URL matcher for building Go web servers with 🦍
https://gorilla.github.io
BSD 3-Clause "New" or "Revised" License
20.92k stars 1.85k forks source link

[BUG] no required module provides package #770

Closed jiangjjl closed 1 month ago

jiangjjl commented 2 months ago

Is there an existing issue for this?

Current Behavior

image This is my go.mod file, but I still can't find the package when I run the Go program. image This is my env

Expected Behavior

No response

Steps To Reproduce

No response

Anything else?

No response

jiangjjl commented 2 months ago

image

jackgris commented 1 month ago

If all those files are in root folder of your project you could run the project with this command: go run . If you are in the root folder but the main function is in another folder you could run something like: go run ./cmd/api

Documentation