videos
Slides and examples used for my training videos (by MarioCarrion)
migrations
SQL database migrations for Golang go-pg and PostgreSQL (by go-pg)
Our great sponsors
videos | migrations | |
---|---|---|
10 | 2 | |
93 | 307 | |
- | 0.3% | |
5.6 | 0.0 | |
about 2 months ago | 6 months ago | |
Go | Go | |
MIT License | BSD 2-clause "Simplified" 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.
videos
Posts with mentions or reviews of videos.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-28.
- NvimTree vs NeoTree
-
Discussion: about "go install" versus brew when available
You can also do something similar with direnv for example (see 1 and 2); and even better if you use the tools.go paradigm then you can have different versions of your binaries relative to your project as well.
-
How to generate translations for multiple packages inside same module
Example for reference.
-
Go Package for testing HTTP interactions: github.com/dnaeon/go-vcr
Please refer to the full example code for more details.
-
Go Package for Mocking HTTP Traffic: github.com/h2non/gock
There's a simple CLI tool I built for requesting OpenWeather information using their API, please refer to the final repository for actually running the full examples.
-
Set struct in Redis
You don't mention what package you're using, but if you're using github.com/go-redis/redis/ you can marshal your struct using encoding/go and then use the SET and SET commands because for Redis everything is bytes, see https://github.com/MarioCarrion/videos/blob/main/2021/03/11-golang-microservices-caching-redis/redis.go I have video covering that exactly: https://youtu.be/wj6-w0DLKRw
-
Building Microservices in Go: Accessing PostgreSQL Databases - Part 1
The full code example mentioned in this post is available on Github, please make sure to read the README for specifics.
-
Building Microservices in Go: Caching using memcached
The code of the examples below are available on Github.
-
Go Package for Equality: github.com/google/go-cmp
Below there are some code snippets, please refer to the final repository for actually running the complete code examples.
-
Go Tools: For database schema migrations
Repository including the code example.
migrations
Posts with mentions or reviews of migrations.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-02-22.
-
Migrations
With database created, we also need to create tables in which our data will be store. And best way to do that is using migrations. We will be using go-pg/migrations module. On GitHub page you can find basic installation and usage guide, and we will use that. Let's start by creating new directory migrations/ inside of project root and file file migrations/main.go:
-
Go Tools: For database schema migrations
github.com/go-pg/migrations: Package (Explicit SQL),
What are some alternatives?
When comparing videos and migrations you can also consider the following projects:
Memcached - memcached development tree
tern - The SQL Fan's Migrator
gobuffalo/pop - A Tasty Treat For All Your Database Needs
go-pg - Golang ORM with focus on PostgreSQL features and performance
go-database-sql-tutorial - A tutorial for Go's database/sql package
retool - Retool: a better filter tool for Redump and No-Intro DAT files.
gock - HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽
SQLBoiler - Generate a Go ORM tailored to your database schema.
go-cmp - Package for comparing Go values in tests
upper.io/db - Data access layer for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.