I published an article explaining how to run #Golang tests in parallel against a #PostgreSQL DB running on #Docker. The PSQL container is created and destroyed programmatically, with Go, before and after running the tests.
#golang
https://t.co/cTNLUl80AR
Couldn't find a priority queue I trusted, so I wrote my own using Go and FOSS best practices.
v1.7.0 is out!
⏱️New Delay queue (timers, retries)
⚡️Zero-alloc perf fixes
It's now 5 thread-safe queues sharing a Queue[T comparable] interface. 🔗https://t.co/5c5bI9UzNN #golang
Happy to announce that my #OSS project, PrivateBTC, is now on the awesome-go list. It's a straightforward tool for #Bitcoin Private Network management, featuring an optional #TUI. Take a look: https://t.co/FL1cOnHLxn
Introducing PrivateBTC: A #Go package providing an intuitive TUI and a streamlined API. Launch and manage your #Bitcoin📷 private network with ease. Execute and replace transactions by fee, mine blocks, and programmatically delve into chain reorganizations
https://t.co/FL1cOnHLxn
I'm happy to announce that I've released v1.3.0 of my #queue#golang package: A Linked Queue implementation was added, complementing the Circular, Blocking, and Priority queues. All structures align with the standard Queue interface.
https://t.co/5c5bI9UzNN
Been working on sharing this one idea in the book for days and I think I'm very close.
---
As a general rule, a package should have a clear purpose and not contain a set of different pieces of functionality. Examples of packages that provide are http, net, fmt, and json. Examples of packages that contain are utils, common, helpers, and the very worse one, models.
If a project has a package that maintains a common set of types, that project is doomed to fail. Why?
Because a project in Go is not a monolithic collection of code as seen in other languages. It's a collection of packages that each expose a purposeful API that work and integrate together to solve the business problem. It’s important to change the idea that a type system belongs to a project. Switch to the idea that a type system belongs to a package. This will allow packages to be properly isolated and available for change without those changes creating large cascading code breakages throughout the project.
That needs to be a goal.
Nine years ago today, Hal Finney left us.
Rest in peace to the husband, father, and cypherpunk who supported #Bitcoin in ways we will all never forget.
“The computer can be used as a tool to liberate and protect people, rather than to control them,” he once wrote.
🎉 New release (v1.53.0) of golangci-lint!
What's new?
- 3 new linters
- support of inverted path match
- forbidigo: support for configuring complex rules
- as usual several bug fixes of linters
⚠️WARNING⚠️
depguard configuration has completely changed
https://t.co/Yetm2UvxbD
I released v1.2.0 of my queue package implemented in #golang. A Circular Queue implementation is now available. Blocking and Priority queues were previously available. All implementations satisfy the Queue interface provided by the package.
https://t.co/5c5bI9UzNN
Exciting times for #Ethereum with the upcoming Shanghai Upgrade. As we look forward it's worth remembering the incredible technological advancements of The Merge back in Sep. These advancements are vital to moving the industry forward, and we should continue to highlight them.
Probably the best thing you'll see today.
In 2017, a group of developers hilariously competed for who could create worst volume control interface in the world.
The results 🧵
1/22
🖥 Access a relational database with Go.
In this tutorial, you’ll create a database, then write code to access the database. Your example project will be a repository of data about vintage jazz records.
Get started ➡ https://t.co/2h6ZIj8Bt2
#LearnWithGo
I think wrapping multiple errors support in 1.20 is the most interesting addition to the language. I've been in situations where I wanted to do this.
return fmt.Errorf("%w, %w", err1, err2)
📅 Go Day 2022 on #GoogleOSLive is only 1 week away!
Join MC @cameronbalahan and a panel of @golang experts to learn how Go programs keep working.
Register today 👉 https://t.co/NX7qateG87