Topic: go

Everything related to Go Programing Language.

Little things of Go HTTP handlers

Every time I sketch an HTTP API in Go, I wrap the code of request handlers around these small but very convenient bits.

go

(You don't) Insert unicode NULL character as Postgres jsonb

Lately, I’ve learned, jsonb prohibits insertion of a valid JSON string if the string contains NULL (U+0000) character.

Does profefe prefers "push" over "pull"?

profefe-collector, the main component of profefe, a system for continuous profiling, receives profiling data from an application and persists the data in the collector's storage. But why waiting for the data to be pushed instead of pulling it directly from the application?

What's in your main-dot-go? (aka New Go Project Boilerplate)

Sometimes I write small services in Go from scratch. And every time main.go ends up looking almost the same.

go

Retrieve Location of macOS Device from Go

How to access macOS Location Services and get the geographic location of the device from Go (with the help of some Objective-C).

The Fireside Edition

After listening to the "Fireside edition" of Go Time (Ep. 110), I questioned myself, how would I answered the questions the hosts discussed.

[]byte to string conversion

Github Actions and GOPATH

Go's net/http.Headers