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

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 »

How to use NATS JetStream Key/Value Store in Golang

No Comments
| Golang Tutorials

In this post, I will briefly introduce the NATS JetStream Key/Value Store using an example with Go programming language. If you’re using NATS ecosystem in your systems architecture, you can further leverage the Key/Value Store as a mechanism for a consistent key/value store for various use cases like dynamic configurations for distributed systems and microservices. […]

Read More »

How to speed up concurrent Golang routines by up to 50%?

No Comments
| Golang Tutorials
golang concurrency

We’ll discuss how using RWMutex over Mutex can greatly enhance performance. Introduction Multiple threads accessing the same memory at the same time is not desirable. In Golang we can have several different goroutines that all possibly have access to the same memory variables, which can lead to a race condition. Mutex, mutual exclusion, along with […]

Read More »

How to Create a Chat Application in Golang with Redis and ReactJS

No Comments
| Golang Applications, Golang Tutorials

A feature-rich chat application in Golang using Redis as a complete solution. Redis is used to store all user data, chats, contact lists, and many other things. The Chat Application’s name is Kayee. It is slang you will hear in Jabalpur city for what’s up! Introduction In this tutorial, you will create a chat application in Golang, […]

Read More »

Posts navigation

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 ci ci/cd cli tool concurrency container context database dba devops docker email error handling framework game generics github golang jobs golang library GORM gRPC gui image processing JSON JWT kubernetes lowcode memory management microservice mongodb monitoring multilanguage nats oauth2 opensource orm rest api RestAPI starter streaming testing websockets

@golangch golang Twitter Feed

Tweets by @golangch

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