goimports | vscode-go | |
---|---|---|
47 | 36 | |
7,238 | 3,743 | |
0.7% | 1.0% | |
9.8 | 9.0 | |
1 day ago | 9 days ago | |
Go | TypeScript | |
BSD 3-clause "New" or "Revised" License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
goimports
-
Secure Randomness in Go 1.22
goimports has special-cased math/rand.Read vs crypto/rand.Read from basically the beginning. But https://github.com/golang/tools/commit/0835c735343e0d8e375f0... in 2016 references a time window where it could resolve "rand.Read" as "math/rand". Maybe you were in that time window?
- Gopls/v0.15.0
-
How to find all methods which return struct "Foo" (vscode or cli)
Just a guess, but it might be somewhere in gopls https://github.com/golang/tools/tree/master/gopls/doc On this page https://langserver.org/ it says it should support "finding references"
- Major rewrite of gopls released (2 weeks ago)
-
What LSP are y'all using?
Language server protocol. Here’s a good one: https://github.com/golang/tools/blob/master/gopls/README.md
-
Can Someone Explain To Me Like I'm 5
gopls was not able to find modules in your workspace.When outside of GOPATH, gopls needs to know which modules you are working on.You can fix this by opening your workspace to a folder inside a Go module, orby using a go.work file to specify multiple modules.See the documentation for more information on setting up your workspace:https://github.com/golang/tools/blob/master/gopls/doc/workspace.md.
- Latest gopls version still v0.11.0 from December 22?
- GitHub - orijtech/structslop: structslop is a static analyzer for Go that recommends struct field rearrangements to provide for maximum space/allocation efficiency.
-
betteralign - structs field alignment static analyzer for Go
For more gopls settings, you can see files in this folder: https://github.com/golang/tools/tree/master/gopls/doc
-
Linter for explicit hint to interface which gets implemented.
But finding which interface is satisfied by a type is trivial anyways through gopls which integrates conveniently into any LSP supporting IDE (such as VSCode and Goland).
vscode-go
-
Error handling in Go web apps shouldn't be so awkward
Goland collapses this to a single line, and vscode is looking into it too.
https://github.com/golang/vscode-go/issues/2311
It papers over the issue, but helps some.
- The Loneliness of the Mid-Level Vimmer
-
How to disable the automatic syntax checking in the Go extension in VS Code?
A quick search of the settings turns up go.languageServerExperimentalFeatures, which links to https://github.com/golang/vscode-go/issues/50
- TIL Goland can run specific cases on table driven tests
- VSCode Does not support Refactoring
- What's the most commonly used IDE for golang development ?
-
Go vs Rust for Algo Trading
The Tour of Go is a nice playground and has helped me onboard the syntax quickly. The golang vscode extension will make your life much easier. And for testing, see here and here. Then write your own application. The first few days will be a friction as many things will be new. Good luck!
- Vscode support for go
- Debug Golang com VSCode
-
best fully open-source IDE for golang ?
VSCodium plus the official Go extension.
What are some alternatives?
gofumpt - A stricter gofmt
goimports-reviser - Right imports sorting & code formatting tool (goimports alternative)
nvim-lspconfig - Quickstart configs for Nvim LSP
LiteIDE - LiteIDE is a simple, open source, cross-platform Go IDE.
goreturns - A gofmt/goimports-like tool for Go programmers that fills in Go return statements with zero values to match the func return types
vscode-go-doc - An Microsoft Visual Code extension for Golang to print symbol definition to output
GoLint - [mirror] This is a linter for Go source code. (deprecated)
Go for Visual Studio Code
staticcheck
Local Golang playground - GNU/Emacs mode that setup local Go playground for code snippets like play.golang.org or even better :)
golines - A golang formatter that fixes long lines
GNU/Emacs go-mode - Emacs mode for the Go programming language