pkgsite
wtf
Our great sponsors
pkgsite | wtf | |
---|---|---|
13 | 48 | |
1,128 | 1,534 | |
2.2% | - | |
9.1 | 0.0 | |
3 days 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.
pkgsite
-
Transitioning from more traditional OOP like C# to Go, what are the biggest coding style differences.
Reading the standard library will give you ideas/insight about various Go idiomatic patterns/approaches, and you can see a full website/API implementation in the pkg.go.dev repository (https://github.com/golang/pkgsite). Projects like https://github.com/etcd-io/etcd may be interesting too.
- What are well-developed web applications in Golang?
- Question about storing everything in an application struct in a web app
-
Mocking database queries - ask for opinion
Let's look at some real codebase for an example on how to write database tests without mocking. The source code for the Go package discovery site(https://pkg.go.dev/) is available at[1] That site uses postgres as its primary database[2]. The database package has a method called GetLatestInfo[3] that fetches the latest versions of a module. That method is called from the frontend http handlers[4] via an interface[5] When it comes to testing that frontend handler, you would expect the tests to use a mock implementation of that interface method. But that's not what they do, instead they use a real postgres database in the test[6].
-
Is there any conventionally accepted repo that is representative of well designed go code ?
The code behind pkg.go.dev is also open-source and might be an interesting read.
-
Generate godoc for pkg with generics
BTW, the number of dependencies of pkgsite surprises me: https://github.com/golang/pkgsite/blob/master/go.mod
-
Good example projects to look through? + a good number of other questions - sorry
The source for Go's pkg site has been helpful to me https://github.com/golang/pkgsite
- Looking for production-grade web app examples
-
Best courses to learn Go for backend?
In my unpopular opinion, the go net/http is good enough to develop the web http application. The standard API is clean and well-documented. One of example is the pkgsite (https://github.com/golang/pkgsite).
-
Golang.org Is Gone
It's also available as a mirror at https://github.com/golang/pkgsite. All the golang.org/x/* packages are thankfully available there, making them pretty easy to find.
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?
solkit - A solitaire collection and solitaire construction kit for terminal
go-clean-arch - Go (Golang) Clean Architecture based on Reading Uncle Bob's Clean Architecture
golds - An experimental Go local docs server/generator and code reader implemented with some fresh ideas.
Golang-Project-Structure - Golang Skeleton With Fully Managed Versions For Kick Start GoLang Project Development
go-rabbitmq - A wrapper of streadway/amqp that provides reconnection logic and sane defaults
bbolt - An embedded key/value database for Go.
keploy - Test generation for Developers. Generate tests and stubs for your application that actually work!
go-clean-template - Clean Architecture template for Golang services
website - [mirror] Home of the go.dev and golang.org websites
go-webapp-example - Example web application written in Go
go - The Go programming language
golang-standards/project-layout - Standard Go Project Layout