GoLint
wtf
GoLint | wtf | |
---|---|---|
6 | 48 | |
3,883 | 1,534 | |
- | - | |
0.6 | 0.0 | |
almost 3 years ago | over 1 year ago | |
Go | Go | |
BSD 3-clause "New" or "Revised" License | MIT 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.
GoLint
-
9 Golang Name Conventions Gophers should follow!
Actually in the early days of Go, devs were stuck to camalCase/PascalCase on variable naming. But VScode Go plugin managed by Microsoft at that time , and they suggested ID over id/ID, XML over xml/ Xml. Because VScode is free, it attached many users and using uppercase for abbreviations/ initialisms became a standard. Andhttps://github.com/golang/lint/issues/124 finalized it. But , still I think it is a wrong decision.
-
VS Code Extension for autocomplete function parameters and best linter?
As for linting, go vet and [staticcheck](staticcheck.io) are the recommended tools, according to the now deprecated golint repository.
-
I wrote a markdown to html converter
golint is deprecated, and it’s no longer required to comment every exported variable/function/struct, etc.
-
go config on mac
not found error (go tools not found issue explained below), can also check here
- A basic polynomial library
-
What are the REST API reference projects that can be used as a guide in 2021?
about Initialisms; Personally I still prefer simple initial conventions (lowerCamelCase, UpperCamelCase, UPPERCASE) Go followed before VSCODE/Microsoft suggested ID or Id (ex. https://github.com/golang/lint/issues/124). Following one pattern everywhere is the best. In Go, a name is exported if it begins with a capital letter. ex URL; if any unexported var/const start with "URL", what do you do?
wtf
-
Help with setting up Ben Johnson's wtf repo locally
I am new to go. Found wtf dial - ( https://github.com/benbjohnson/wtf ) while looking to get some project based learning. This looks pretty interesting but when I did git clone of the project my vs code is giving number dependency related problems like below.
-
Educational Codebases
There are a few Go projects meant to be learned from:
- https://github.com/pion/opus for to learn audio
- https://github.com/benbjohnson/wtf for overall production quality
- https://github.com/upspin/upspin difficult to explain, personally I'm not a fan of the errors
- Ben Johnson's WTF project layout: interface usage
- Exemple of Web API written in Go that you'd consider high quality
-
Directory structure for a golang project
I read about https://github.com/benbjohnson/wtf and the connected blog here a couple of times. Seems quite good.
- Project structure - I often see duplicate function names in db layers, why?
-
The one-and-only, must-have, eternal Go project layout
Personally I think the method is the layered architecture approach. Example: https://github.com/benbjohnson/wtf
-
Examples of Good Go Repos
Take a look at the discussions in the repo: https://github.com/benbjohnson/wtf/discussions
-
Examples of an idiomatic API project
https://github.com/benbjohnson/wtf This repo serves as an example and fits Go very well in my opinion. Check the discussions on the repo and the blog posts.
- what do you use for migrations? or how do you the sql tables and seeding?
What are some alternatives?
staticcheck
go-clean-arch - Go (Golang) Clean Architecture based on Reading Uncle Bob's Clean Architecture
goimports - [mirror] Go Tools
pkgsite - [mirror] Home of the pkg.go.dev website
go-checkstyle - checkstyle for go
Golang-Project-Structure - Golang Skeleton With Fully Managed Versions For Kick Start GoLang Project Development
gosimple
bbolt - An embedded key/value database for Go.
errcheck - errcheck checks that you checked errors.
go-clean-template - Clean Architecture template for Golang services
Go Metalinter
go-webapp-example - Example web application written in Go