Streaming Video With Golang

Streaming video with Go (Golang) is a popular choice for building efficient and scalable video streaming applications. In this blog post, we’ll discuss some of the key concepts and considerations for building a video streaming application with Go. One of the first things to consider when building a video streaming application is the underlying video format. Go has built-in support for working with a variety of video formats, including MP4, FLV, and AVI....

January 4, 2023 · 5 min · 1063 words

The Context Package

Context in Go is a type that carries a request-scoped value across API boundaries. It is designed to be used in long-lived requests, such as an HTTP server handling multiple requests over the lifetime of a process. One of the primary use cases of context is to cancel long-running operations. For example, if an HTTP server receives a request with a cancelation token, it can use that token to cancel the request if the client closes the connection....

January 3, 2023 · 4 min · 771 words

Use Protobuf With Golang

Protocol Buffers (Protobuf) is a language- and platform-neutral data serialization format developed by Google. It allows you to define data structures in a .proto file and then use code generation tools to generate code in various languages for working with those data structures. To use Protobuf with Go, you’ll need to do the following: Install the Protobuf compiler (protoc) and the Go Protobuf plugin: # Install protoc wget https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/protoc-3.14.0-linux-x86_64.zip unzip protoc-3....

December 27, 2022 · 2 min · 425 words

Create Command Line Application With Golang

Creating a Command Line Application to Separate Files by Extension in Go If you have a folder with a large number of files and you want to organize them by file extension, you can create a command line application to do this automatically using Go. Go, also known as Golang, is a programming language developed by Google that is designed to be fast, statically-typed, and easy to learn. In this article, we’ll walk through the steps to create a Go program that separates files in a given folder into subfolders based on their extension....

December 20, 2022 · 5 min · 890 words

Use Redis With Golang

Using Golang and Redis Redis is an in-memory data structure store that can be used as a database, cache, and message broker. It is known for its speed, simplicity, and flexibility. In this article, we will discuss how to use Redis with Golang, a popular programming language known for its simplicity, performance, and concurrency support. Before we dive into the details of using Redis with Golang, let’s first understand the requirements of the application....

December 19, 2022 · 7 min · 1488 words