Can't see go.sum after initializing the project backend

王林
Release: 2024-02-09 18:30:18
forward
1127 people have browsed it

初始化项目后端后看不到 go.sum

php Editor Zimo may encounter a problem after initializing the project backend, that is, he cannot see the go.sum file. The go.sum file is the dependency management file in the Go language project, which records the various modules and their version information that the project depends on. Under normal circumstances, the go.sum file will be automatically generated after initializing the project, but sometimes it will not be displayed, which brings certain troubles to subsequent development and deployment. So, how should we solve this problem? Let’s introduce the solution in detail below.

Question content

I am trying to make a simple chat application using golang to understand the application better. The tutorial I followed requires initializing go.sum. After running the following command I only see go.mod

go install golang.org/x/tools/gopls@latest
go mod init github.com/TutorialEdge/realtime-chat-go-react
Copy after login

How do I try to resolve this issue?

Thank you in advance!

I looked into possible version errors but I couldn't really find a fix. I can still only see go.mod

Workaround

The tutorial content you mentioned is a bit outdated. In current Go, go.sum is managed by the go mod tidy command.

The above is the detailed content of Can't see go.sum after initializing the project backend. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:stackoverflow.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!