Skip to content

Instantly share code, notes, and snippets.

@keilin-anz
keilin-anz / My first evy.md
Last active November 10, 2023 05:01
Mouse chaser test in evy
@keilin-anz
keilin-anz / README.md
Last active November 15, 2021 08:25
Pair helper for JSON and YAML

Pair

A helper for that - admittedly very rare - YAML/JSON scenario where you may want a single key->value pair represented as a map, but don't want to have map[string]interface{} strewn throughout your code

see example.go

Why?

My use case was I wanted to represent environment variables in a config file, BUT there were caveats to the easy methods: