go-pg
Golang ORM with focus on PostgreSQL features and performance (by go-pg)
myapp
🚀 How to build a Dockerized RESTful API application using Go. (by learning-cloud-native-go)
go-pg | myapp | |
---|---|---|
9 | 32 | |
5,582 | 746 | |
0.3% | 2.2% | |
6.4 | 6.8 | |
12 days ago | 13 days ago | |
Go | Go | |
BSD 2-clause "Simplified" License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
go-pg
Posts with mentions or reviews of go-pg.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-12.
-
Dockerized RESTful API Application in Go: CRUD,ORM,Logs,Migrations,Validations
Might have been this one but I can't be sure https://github.com/go-pg/pg
-
What SQL library are you using?
I usually work with PostgreSQL and have used https://github.com/go-pg/pg. https://github.com/uptrace/bun is its successor.
- Why all the hate?
-
Clean Transactions in Golang Hexagon
And it is go-pg. I personally really like it as a query builder (rather than an ORM) and it has good performance. It has one feature which I'll tell you about next, without which I would have struggled to implement what I had in mind. But this feature is available in other libraries too, so don't rush to rewrite your code.
-
SQL Query Strategy for complex structs
bun and go-pg both seem to work fairly well for these kind of purposes.
- Go for Backend development
-
Connecting with database
For database communication we will use go-pg module. You can install it by running go get github.com/go-pg/pg/v10. This will install version 10 of go-pg module, which is latest version at the time of writing this guide. Now create new directory internal/database/ and file database.go inside of it.
-
How much do you agree completely switching from Java to Go? I have total 9yrs of experience in Java but now I am interested in Go.
gorm.io/gorm`, or `github.com/go-pg/pg` if you need something more feature-rich. I would avoid using `go-kit` and `go-micro` "frameworks" unless you have some special requirement for it. But you can take a look to have an idea of what Go "framework" may look like.
-
A Proposal for Adding Generics to Go
This one is mostly excellent: https://github.com/go-pg/pg
myapp
Posts with mentions or reviews of myapp.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-12.
-
After learning the base
I would love to suggest https://github.com/learning-cloud-native-go/myapp and https://learning-cloud-native-go.github.io/ some open source side projects I am working on.
-
Api with database - one continuous connection or one connection for http call
https://github.com/learning-cloud-native-go/myapp shows how to build a Dockerized RESTful API application using Go. It includes a sample RESTful APIs/ CRUD build using Go net/http with Chi router, Postgres, DB migrations, Configs via env variables, Zerolog structural logs, Validator v10, Gorm.
-
Any Working Example for Swagger integartion with golang?
You need to set these env variables/ configs. https://github.com/learning-cloud-native-go/myapp/blob/main/.env
-
Resources for learning Golang
Some open source projects I am currently working on, - https://learning-cloud-native-go.github.io/ - https://github.com/learning-cloud-native-go/myapp
-
Examples of an idiomatic API project
Checkhttps://github.com/learning-cloud-native-go/myapp
- Dockerized RESTful API Application in Go: CRUD,ORM,Logs,Migrations,Validations
- Dockerized RESTful API Application in Go:CRUD,ORM,Logs,Migrations,Validations
- Is there a good example of an open source non-trivial (DB connection, authentication, authorization, data validation, tests, etc...) Go API?
What are some alternatives?
When comparing go-pg and myapp you can also consider the following projects:
GORM - The fantastic ORM library for Golang, aims to be developer friendly
go-clean-template - Clean Architecture template for Golang services
bun - Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
gorsk - :fire: Idiomatic Golang Restful Starter Kit
ent - An entity framework for Go
golang-standards/project-layout - Standard Go Project Layout
SQLBoiler - Generate a Go ORM tailored to your database schema.
lucid - A real golang framework
sqlx - general purpose extensions to golang's database/sql
datly
bun - SQL-first Golang ORM
Moby - The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems