Monkinetic Weblog

XVI Edition, September 2025

More Navigation

Entries for #golang

page 1 of 1


One thing I remain impressed about with #golang: I almost never see "alternate libraries" for things like http, networking, html parsing. The builtins are good and well-documented, and there's a culture of using what's provided.


Back to a nerd topic: implemented some of the #webmention server in my blog software this evening, and rearchitected the storage layer with an interface to make testing easier #golang


Gotta say passing variable-length values to SQL's "in" syntax in #golang is UUUUUGLY


Learning Can Be... Boring?

(SORRY, LOST IMAGE)

Ran into a friend today at church and he asked me "hey I'm trying to learn Python, do you have any good sites or books to recommend? I'm kinda... bored."

Now some of us geeks can't imagine being bored learning something new, but I went through this when I first started learning Go. I had decided I wanted to learn a new programming language, and Rust was way too... Rust, so I picked Go and started building a small o-nothing web app. I got part way in an realized that I had no interest in what I was doing, and it (and some bits of Go that hadn't matured) was killing my fun. So I put it down.

Fast forward to this year. I was ready to pick up Go again, but this time I also knew that I wanted to start writing again, and that the friction in my blogging process was killing my joy there, too. So I decided to write my own blog software (see #goldfrog), and I was going to write it in Go.

Suddenly I was energized to learn, because I had all these feature ideas for the site, and I had to learn the #golang techniques for tasks I'd only one in #python before. Also, it got me into the golang newbies Slack, and connecting with a community - for me at least - helps.

So my advice to my friend was:

  • Find a project you're passionate about, or at least really interested in
  • Be willing to re-learn things you think you already know
  • Find a #community!

Fun with Barcodes

Being the curious sort, I wondered what it would take to generate #barcodes programmatically, and found this neat site. Here's "monkinetic.blog" rendered as a Code 128 barcode:

(SORRY, LOST IMAGE)

Then I found a barcode package for #golang, so of course I'm trying to decide what on this site I could generate barcodes for...


#golangs crappy regexp


For my next #indieweb trick: I'm working on adding support for Webmention in #goldfrog.

https://github.com/sivy/goldfrog/issues/9

Client:

  • Endpoint discovery (header, link, a)
  • Send basic webmentions
  • Send "special" webmentions (ie Likes)

Server:

  • Provide discovery (header, link, a)
  • Receive basic webmentions
  • Receive "special" webmentions (ie Likes)

Ultimately I'd like to break out my webmention code into a releasable #golang module that can provide reusable http.Handler functions that can be plugged into any Go mux that supports them.


Go By Example

Go By Example might be one of the best getting-started resource I’ve ever seen for a programming language.

Huge thanks to Mark McGranaghan for giving this to the community.

#golang #newbie #documentation

https://t.co/jBjzA9UALb


Go By Example might be one of the best getting-started resource I've ever seen for a programming language.

Huge thanks to Mark McGranaghan for giving this to the community.

#golang #newbie #documentation


Write where it matters

I'm writing a new blog app. It's just for myself right now, a toy to remind me why I love the web.

It's called Goldfrog, and it sounds a bit like "Go, blog!"

/static/images/goldfrog.png


I’m calling it goldfrog,it’s going to be written in #golang, which isn’t actually important.

page 1 of 1