Is there a built in way, or reasonably standard package that allows you to convert a standard UUID into a short string that would enable shorter URL\'s?
I.e. taking adva
As suggested here, If you want just a fairly random string to use as slug, better to not bother with UUID at all.
You can simply use go's native math/rand library to make random strings of desired length:
import (
"math/rand"
"encoding/hex"
)
b := make([]byte, 4) //equals 8 charachters
rand.Read(b)
s := hex.EncodeToString(b)