Skip to content

Instantly share code, notes, and snippets.

View Slals's full-sized avatar
🎲
RNG

Jonathan Serra Slals

🎲
RNG
View GitHub Profile
@Slals
Slals / main.go
Last active March 3, 2017 23:03
Use hashed ID for database without storing the hash and keeping the default serial in the database in Golang.
package main
import (
"fmt"
"encoding/json"
"github.com/speps/go-hashids"
)
func initHasher() *hashids.HashID {