gorilla / mux

Package gorilla/mux is a powerful HTTP router and URL matcher for building Go web servers with 🦍

Home Page:https://gorilla.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] no required module provides package

jiangjjl opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

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

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