impl
pgxtutorial
impl | pgxtutorial | |
---|---|---|
3 | 3 | |
985 | 115 | |
- | - | |
3.4 | 6.8 | |
9 days ago | 5 months ago | |
Go | Go | |
MIT 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.
impl
-
Which Tools Do You use daily for Golang development?
impl generates method stubs for implementing an interface
-
[gopher.nvim] Plugin for golang development
What can do this plugin? - Modify struct tags. - Run go get, go mod & go generate commands inside of nvim. - Implement interface by impl. - Generate tests by gotests. - Install required tools for plugin working(by go install).
-
Back to basics: Writing an application using Go and PostgreSQL
Looks interesting! Reminds me impl[0], which comes bundled with `vscode-golang`.
[0]: https://github.com/josharian/impl
pgxtutorial
-
Back to basics: Writing an application using Go and PostgreSQL with pgx
# Clone my repository with any of the following commands: $ gh repo clone henvic/pgxtutorial $ git clone https://github.com/henvic/pgxtutorial.git $ git clone [email protected]:henvic/pgxtutorial.git # then: $ cd pgxtutorial # Create a database $ psql -c "CREATE DATABASE pgxtutorial;" # Set the environment variable PGDATABASE $ export PGDATABASE=pgxtutorial # Run migrations $ tern migrate -m ./migrations # Run all tests passing INTEGRATION_TESTDB explicitly $ INTEGRATION_TESTDB=true go test -v ./... # Execute application $ go run ./cmd/pgxtutorial 2021/11/22 07:21:21 HTTP server listening at localhost:8080 2021/11/22 07:21:21 gRPC server listening at 127.0.0.1:8082
-
Back to basics: Writing an application using Go and PostgreSQL
oh, I also have defined database.PGX (https://github.com/henvic/pgxtutorial/blob/main/internal/dat...), which is a little more scarier. I'll get back about that too, but this one is perhaps even more useless, and there might be a better way to solve the issue I want to try to avoid with it.
What are some alternatives?
go-mockgen-tool - Go/Golang mock generation for interfaces via code generation
gotests - Automatically generate Go test boilerplate from your source code.
pq - Pure Go Postgres driver for database/sql
whatgotdone - A tool for sharing weekly task updates with teammates.
litestream - Streaming replication for SQLite.
go - The Go programming language
dockertest - Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work.
go.nvim - A feature-rich Go development plugin, leveraging gopls, treesitter AST, Dap, and various Go tools to enhance the dev experience.
sqlc - Generate type-safe code from SQL
ApacheKafka - A curated re-sources list for awesome Apache Kafka