goplay Featured goplay: Embed Go Playground on your Website This post is introducing a way to run Go snippets on websites. Which leveraged the official Go Playground service at https://go.dev/play/. Demo Let’s take a quick look at the two demos below. You can click the Run button to see the output of the corresponding program.
database Postgres ID Generator with Safe JSON Numbers Before reading this post, I recommend you to read A Better ID Generator For PostgreSQL written by Rob Conery. To recap briefly, their post had discussed: 1. The problem you will face in the rapid grow of your systems if you used GUID as the primary key. 2. How Twitter
go Featured Decode HTTP Query Params into a Struct in Go Use httpin package to decode HTTP request params into a struct in Go.
streaming Featured Deploying an AES-128 Encrypted HTTP Live Stream (HLS) HTTP Live Streaming (HLS) is an HTTP-based adaptive bitrate streaming communications protocol developed by Apple Inc. and released in 2009. Some key points of HLS: 1. Created by Apple. 2. Consists of a playlist/manifest file (e.g. index.m3u8) and segment video files (e.g. index01.ts). 3. H264
git Open Source Contribution Workflow Best Practice Generally speaking, as we were using some open-source libraries we will inevitably find that there are some bugs or points that can be improved. And sometimes we even have to develop a brand new feature based on these libraries to satisfy our own needs. Out of respect for sprit of
docker Reduce Docker Image Size by Using Multi-stage Builds If you don't take any optimization measures, docker images can easily get large. And in most cases we just wrapped too many inessential things into the images. So, we should take actions to get rid of it.