Pages Tagged Go / Golang

Golang Slugify Function

2024-05-17

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

2024-05-17

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

2024-05-14

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

2024-05-12

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