Byte Ebi's Logo

Byte Ebi 🍀

A Bit everyday A Byte every week

Different between pointer and value for struct type in golang

The different between pointer and value for struct type in golang with examples


I always had a question “Should I use value for type in struct? Or using pointer?”
After reading many different projects on the web, it seems that they all have different practices.
Until I recently encountered a problem that gave me some ideas.

Using FFmpeg to convert media files

Convert .ts video files to .mp4


Sometimes, we can use certain methods to download the .M3U8 file and then merge it into a .ts file.
However, computers usually cannot directly play this format.
We can use FFmpeg to convert it into a common .mp4 file for easy playback.

[AWS 101] What are SNS and SQS

Briefly note what AWS SNS and SQS services do and their use cases


Amazon Simple Queue Service (SQS) and Amazon Simple Notification Service (SNS) may look similar.
But in reality, they are quite different.

Serverless 101

Introducing What is Serverless with AWS Services


Since our company’s services are built on AWS and heavily rely on various serverless computing services,
I had no prior experience in this area. This series serves as a compilation of notes for me,
and its content may be subject to constant revisions in the future.

Interacting with smart contracts using Golang

Generating a Go package with abigen tool to interact with smart contracts and perform contract operations


Previously, I was calling Smart Contracts through PHP, which raised two issues.
One was the slowness, and the other was the lack of maintenance of the package.
Fortunately, Golang provides an official package that is both fast and solves these two problems.
This article explains how to convert existing Smart Contract ABIs into a Go package for interacting with contracts.

Create a Redis service on GCP

Set up a Redis service using Google Cloud MemoryStore.


GCP offers the Google Cloud MemoryStore service for creating Redis or Memcached caching machine services.
The pricing is similar to that of setting up a database.
I thought it would be as inexpensive as using virtual machines (VMs).

Make your computer be temporarily accessible on the internet. - Ngrok

Use Ngrok to temporarily obtain a publicly accessible URL for your computer.


In development, it is often encountered that testing on the local machine requires a publicly accessible URL for services.
Or webhooks to use as a callback. Moreover, these services often require HTTPS certification.
Are there any other options besides setting up a cloud server for this purpose?

Recent Posts