|about 1 month ago||7 days ago|
|BSD 3-clause "New" or "Revised" License||BSD 3-clause "New" or "Revised" License|
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.
Gofumpt: It's like gofmt except more strict
4 projects | news.ycombinator.com | 10 Feb 2023
In the roadmap section the author says it's more of an experiment with a possibility that some of the rules might end up in the original 'gofmt' tool. While I agree that Go having a de facto formatter built in is wonderful, there are some absolutely fantastic additions in 'gofumpt' that I do hope wind up in 'gofmt'
---4 projects | news.ycombinator.com | 10 Feb 2023
go-global-update - the missing command for updating globally installed go executables
5 projects | /r/golang | 14 Mar 2022
I am the author of go-global-update, the missing command to update globally installed go executables (like gofumpt, gopls, gotop, and other CLI tools you may have installed globally in your system - in your GOBIN directory).
setting up emacs for go programming language
4 projects | /r/emacs | 25 Jan 2022
I think that the one tool that might still be useful outside of gopls is goimports. It can be used as a gofmt replacement, that also automatically manages and removes imports. Gopls can integrate staticcheck and gofumpt, but my understanding is that they have to be installed manually. See the settings section for more on that(1).
Is there a better alternative to `gofmt`?
5 projects | /r/golang | 29 Dec 2021
I use gofumpt but I'm pretty sure it doesn't wrap either (and I don't want it to so we're good)5 projects | /r/golang | 29 Dec 2021
doc comment revisions: headings, lists, and links · Discussion #48305 · golang/go
2 projects | /r/golang | 10 Sep 2021
Thats why things like gofumpt make sense.
2 projects | /r/backtickbot | 14 Aug 2021
Support for goumpt
The GoLand team is looking for feedback about running 'go fmt' on save
4 projects | /r/golang | 12 Jan 2021
gofumports on save!
How to find all methods which return struct "Foo" (vscode or cli)
2 projects | /r/golang | 12 Jun 2023
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"
GitHub - orijtech/structslop: structslop is a static analyzer for Go that recommends struct field rearrangements to provide for maximum space/allocation efficiency.
4 projects | /r/golang | 25 Mar 2023
betteralign - structs field alignment static analyzer for Go
8 projects | /r/golang | 22 Mar 2023
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.
2 projects | /r/golang | 26 Jan 2023
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).
LMDE5 + VSCodium setup issues
3 projects | /r/golang | 18 Dec 2022
Error loading workspace: 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, or by 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.
How to use AWS SAM with Go in Visual Studio Code
3 projects | dev.to | 10 Dec 2022
The ResponseEvent struct. The reason for this is that the IDE has set the GOPATH to the root of the project. Therefor the imports are not correct. By using Workspace Folders you can change this behavior so that each folder has it’s own scope.
Is there any way to autocomplete language functions? For example, show things like fmt.Printf or fmt.Println when writing fmt.Print and pressing the autocomplete key.
12 projects | /r/neovim | 10 Sep 2022
Here are a few resources to get you started: 1. https://github.com/neovim/nvim-lspconfig 1. https://github.com/golang/tools/tree/master/gopls 1. https://github.com/williamboman/nvim-lsp-installer
Using multiple repositories in your CI builds
4 projects | dev.to | 16 Aug 2022
Like with the previous post, we're going to use djinn-ci/imgsrv as an example of using multiple sources in a build manifest. If we look at the top of the manifest file, we will see that it requires three repositories to build. These are, the source code for djinn-ci/imgsrv itself, golang/tools, and valyala/quicktemplate, defined like so,
Go Linux/Debian users which is the apt command to install Go via terminal?
2 projects | /r/golang | 5 Aug 2022
Other useful solutions: https://github.com/golang/tools/tree/master/cmd/getgo https://go.dev/doc/manage-install
LSP codelens and inlayhints
4 projects | /r/neovim | 23 Jul 2022
I was reading about some of the gopls settings and ended up enabling a few, especially about codelens and inlayhints, only to come to the realization that more work is needed to make them work.
What are some alternatives?
nvim-lspconfig - Quickstart configs for Nvim LSP
goreturns - A gofmt/goimports-like tool for Go programmers that fills in Go return statements with zero values to match the func return types
GoLint - [mirror] This is a linter for Go source code. (deprecated)
golines - A golang formatter that fixes long lines
goimports-reviser - Right imports sorting & code formatting tool (goimports alternative)
go-checkstyle - checkstyle for go
GNU/Emacs go-mode - Emacs mode for the Go programming language
GoCover.io - GoCover.io offers the code coverage of any golang package as a service.
lint - Run linters from Go code -