Github module does not download correctly

  Kiến thức lập trình

I’m trying to run a COPY of github code on my local machine. I am new to Go and its way of handling modules, but not to programming. The modules are not downloading correctly, and I do not understand what is causing the error.

The code–written and controlled by someone else–which is currently running smoothly elsewhere is located at:
https://github.com/mashedkeyboard/yapperbot-frs

I downloaded “main.go”. Then I ran:
% go mod init
% go mod tidy
% go run .

The last command gives this error:
module declares its own path as: yapperbot-frs
but was required as: github.com/mashedkeyboard/yapperbot-frs

I am not sure how I can fix it. Tried many things.

New contributor

user24000537 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT