Pages Tagged Go / Golang

Golang Slugify Function


A function which takes an input string and converts it to a "slug", a string of text suitable for use in an url address

Hugo Remove List Duplicates


In processing JSON records for a Hugo site I needed to remove duplicate ID elements in a list. Here's how I did it.

loop variable captured by func literal


In my process of learning how to code a Golang web crawler I ran into an unexpected warning: loop variable url captured by func literal

Golang Friendly Date Converter


A function which takes an input string of the format YYYY-MM-DD and converts it into a more readable "Mar 06, 2006" format