Glaze, a Desktop WebView in Go Without CGO
How Glaze stopped embedding a C++ library and started calling the operating system's WebView directly, in pure Go, using purego to keep cgo and native dependencies out of the …
Hello and welcome to my corner of the internet. Here I talk a bit about myself and my work as a programmer, discuss technology, and I’ve also written some articles and tutorials that might be useful for those who, like me, love this world of bits and transistors. Working with computers isn’t just a passion—it’s also what has paid the bills ever since I can remember. Hope you enjoy it.
:wq
How Glaze stopped embedding a C++ library and started calling the operating system's WebView directly, in pure Go, using purego to keep cgo and native dependencies out of the …
singleflight is not a cache. It just keeps simultaneous calls for the same key from doing the same expensive work several times. Once the call finishes, the entry is removed.
An overlapping text chunker in Go using the stdlib iter package, without cutting words in half.
Combining terminal password input, encryption at rest, and a SQLite snapshot into a vault that lives in RAM and exists on disk only as an encrypted blob.
Running SQLite entirely in memory and taking a snapshot of the database bytes with serialize/deserialize, using the modernc.org/sqlite driver.
Encrypting data at rest with nothing but Go's standard library: PBKDF2 to derive the key from the password and AES-256-GCM to encrypt and authenticate.
Reading passwords in the terminal in Go without echo and with confirmation on first use, using golang.org/x/term.
A Go reimplementation of the classic Neko: transparent window, original sprites, sound, and a cat that chases the cursor across the screen.
SQLite triggers to automate actions like updating timestamps
Recursive Go function to access values in nested maps
The classic /etc/rc.local still works even after 40 years of obsolescence.
How to configure and run an SFTP/WebDAV server using Go (sftpdav). Check out practical examples, security tips, and how to leverage standard libraries for building robust and …