Skip to content

Golang Libraries, Apps, Golang Jobs and Go Tutorials

Golang News, Tutorials, Go Libraries and Golang Jobs

Menu
  • Golang Jobs / Go Developer Jobs
  • Go/JS Full Stack Development

Category: Golang Tutorials

Improving Redis Engine throughput and allocation efficiency with Rueidis Golang library

No Comments
| Golang Tutorials
Redis Golang

The main objective of Centrifugo is to manage persistent client connections established over various real-time transports (including WebSocket, HTTP-Streaming, SSE, WebTransport, etc – see here) and offer an API for publishing data towards established connections. Clients subscribe to channels, hence Centrifugo implements PUB/SUB mechanics to transmit published data to all online channel subscribers. Centrifugo employs Redis as its […]

Read More »

How to implement a disk-based key-value store in Golang

No Comments
| Golang Tutorials
disk-based key-value store in Golang

I’d been mulling around reading a computer science paper and implementing a project based on it. Distributed systems, Networking and Databases are some of the things that fascinate me a lot. However, I had been looking to implement a more approachable project to avoid getting inundated initially. And I happened to chance upon the Bitcask paper through […]

Read More »

How to work with the proposed structured logging Package for the Golang Standard Library

No Comments
| Golang Tutorials
Logging via the slog package

For a while now, I’ve been keeping a close eye on the structure logging proposal making its way through Go’s language proposal process. Last month an experimental version of the proposal was released under the golang.org/x/exp package (see documentation here) and I decided to experiment with it and decided to summarise my learnings in a blog for others to learn […]

Read More »

Golang gRPC to JSON proxy generator following the gRPC HTTP spec

No Comments
| Golang Tutorials
Golang gRPC gateway

The gRPC-Gateway is a plugin of the Google protocol buffers compiler protoc. It reads protobuf service definitions and generates a reverse-proxy server which translates a RESTful HTTP API into gRPC. This server is generated according to the google.api.http annotations in your service definitions. This helps you provide your APIs in both gRPC and RESTful style at the same […]

Read More »

How to declare ORM model and validation rules in OpenAPI doc for Golang

No Comments
| Golang Tutorials
Golang OpenAPI ORM

The typical usage mode of an OpenAPI document is generating client and server API skeletons and interfaces from model. In most cases, the generated types aren’t compatible with the DB schema, so adapters must be implemented which causes more coding and automatic tests. A few solution provides the internal types on the external API, so adapters between […]

Read More »

How to create transparent animated GIFs with Golang

No Comments
| Golang Tutorials

The image/gif package of Go’s standard library makes it quite easy to create animated GIF images. All you need to do is create your individual frames as an array of *image.Paletted and use gif.EncodeAll() to encode them into an animated GIF. Once you get to the point where you need to do something more advanced than importing existing images or drawing basic shapes, […]

Read More »

How to work with Golang contexts and blocking functions

No Comments
| Golang Tutorials
How to work with Golang contexts and blocking functions

Once you’ve been programming long enough, you’re bound to encounter issues where an application would become stuck intermittently, but for no obvious reason. With the root cause found and the issue resolved, you might ask yourself “how can I keep this kind of bug from happening in the future?” In this post I suggest a […]

Read More »

Building a custom code search index in Golang

No Comments
| General, Golang Libraries, Golang Tutorials

I present what I belive is a unique index for indexing and searching source code. It copies ideas from Bing bitfunnel implementation to create a very fast, memory efficient trigram index over source code. What Happened? On Monday 21st November 2022 I updated the DNS entries for searchcode to point at the new searchcode server […]

Read More »

Dependency handling for microservices with Golang: monorepo vs multirepo

No Comments
| Golang Tutorials
Golang Microservices

Microservice architecture is famous nowadays, but it has some drawbacks, see my earlier article: Microservice architecture is not a silver bullet. One of the painful complexity is handling the component version dependency. The component version dependency is more than component dependency, because it specifies which version is used on the dependency. Handling this additional info makes […]

Read More »

A boilerplate for a gRPC-gateway-powered REST services project in Golang

No Comments
| Golang Libraries, Golang Tutorials
Golang boilerplate grpc-gateway powered REST services

All the boilerplate you need to get started with writing grpc-gateway powered REST services in Go. Requirements Go 1.17+ Running Running main.go starts a web server on https://0.0.0.0:11000/. You can configure the port used with the $PORT environment variable, and to serve on HTTP set $SERVE_HTTP=true. An OpenAPI UI is served on https://0.0.0.0:11000/. Running the standalone server If you want to use […]

Read More »

Posts pagination

Previous 1 2 3 … 13 Next

Search golang Blog & News

Categories

  • General
  • Golang Applications
  • Golang Blog
  • Golang Jobs
  • Golang Libraries
  • Golang Tutorials

Looking for a Developer Job?

Golang Jobs
Remote Golang Jobs
Fullstack Developer Jobs Board
Rust Jobs
Python Jobs
Javascript Jobs
React Jobs
Java Jobs

Hire Me

  • Golang Software Development
  • Software Architecture and Consulting
  • Full Stack Developer
Software Development Services (Golang/JavaScript)

golang ch Twitter

Follow @golangch

api Authentication Authorization boilerplate channels ci ci/cd cli tool concurrency container context database dba dependency injection devops docker error handling framework game generics github golang jobs golang library golang tutorial GORM gRPC gui image processing kubernetes memory management microservice mongodb monitoring multilanguage oauth2 opensource orm performance redis rest api router starter streaming testing websockets

@golangch golang Twitter Feed

Tweets by @golangch

Golang Libraries, Apps, Golang Jobs and Go Tutorials 2025 . Powered by WordPress