Tag: Golang
DRY-ing Go/Golang’s error handling with underscores.
The Go Programming Language, also preferred by others as Golang, doesn’t include the concept of Exceptions and try-catch like Java. This is why many functions and libraries built around it are meant to be written like this: If you are writing simple programs with Go, there are many cases that you just don’t put much…
The whole Trust+ / Internet Sehat blocklist database, now in one regular expression;
(#_ )! At the end of 2022, I decided to experiment on building a lightweight Indonesian internet blocklist database, which can be consumed offline. No network connections to servers of Kominfo, Telkom Indonesia, and community-run services like indi.wtf. Because all you need is a freakin’ huge regular expression. Research methods We wrote a simple Go…