Made a library? Written a blog post? Found a useful tutorial? Share it with the Go community here or just enjoy what everyone else has found!
Stop sharing them over insecure channels like Slack and email, and never lose an important .env file again.
I’m here today to talk about Pocketbase!, an Opensource back-end that is distributed in a single Go binary. More in the docs page…
Real time database (Powered by SQLite) File Storage — Integrates with S3, more Object Storage support is coming. Authentication Full Featured Admin UI — To manage users, collections & more Extendable via Go Programming Language to extend functionality
This is great for a Micro-SaaS, Mobile back-end or even your next hobby project. Coupled with something such as Litestream by Ben Johnson for SQLite replication for real-time backups and FlyIO for Hosting can really be your goto stack.
Several Docker images are being built, even mine and hopefully soon an Official Docker Image.
In my next post, I’ll walk through how to setup Pocketbase with a Simple front-end using Fly hosting.
Thanks for Reading!
config is an easy-to-use package that supports reading configuration into a struct from files, environment variables and command-line arguments. All you need is to declare a structure that will hold your configuration and call
Read method. The library will pool the values from a config file in any well-known format, from env vars that follows simple naming convention, or from command-line arguments
go get github.com/num30/config
Writing maintainable code is essential. Clarity, readability, and simplicity are all aspects of maintainability. It should make the process easy for someone to join your project or maintain it after someone leaves. Maintainability is measured by how effortless it is to introduce changes and the amount of risk associated with those changes. To write Go effectively, it is crucial to understand its properties and idioms and apply the established conventions related to naming, program construction, formatting, etc.
Find the full blog here: https://jogendra.dev/writing-maintainable-go-code
smtpmock will help you to mimic any SMTP server behaviour for your test environment. It's lightweight configurable multithreaded SMTP fake server. It meets the minimum requirements specified by RFC 2821 & RFC 5321: https://github.com/mocktools/go-smtp-mock
On the Martian blog, Svyatoslav Kryukov enters into a fantasy realm, and is forced to imagine that ✨everything must be written in Go!✨
Read and learn to write Go in Ruby, gaining the ability to modify Ruby exactly as you desire.
In this article, he covers:
Goapp is an opinionated guideline to structure a Go web application/service (or could be extended for any application). These opinions were formed over a span of 5+ years building web applications/services with Go, trying to implement DDD (Domain Driven Development) & Clean Architecture. Even though I've mentioned go.mod and go.sum, this guideline works for 1.4+ (i.e. since introduction of the special 'internal' directory).
Tant que Go est encore en version 1.15.x et n'a pas encore les embeds de fichier en standard, voici comment utiliser
pkger pour embarquer vos templates ou tout autre asset:
While Go is still 1.15.x and doesn't yet have standard embeds, here is how to embed templates (or whatever assets you need) in your code with
As a Golang developer, you probably have encountered import cycles. Golang do not allow import cycles. Go throws a compile-time error if it detects the import cycle in code. In this post, let’s understand how the import cycle occurs and how you can deal with them.
Find full blog here:
This is the next installment of our series by Ayooluwa Isaiah that explains features in Go so developers can compare them to Ruby or whatever other language.
In the previous article in this series, we had an extensive discussion on the Go
net/http package and how it can be used for production-ready web applications.
We focused mostly on the routing aspect and other quirks and features of the
This article will close out the discussion on
ServeMux by demonstrating how
middleware functions can be implemented with the default router and introducing
other standard library packages that are sure to come in handy when developing
web services with Go.