Skip to content

Instantly share code, notes, and snippets.

@jw-00000
jw-00000 / main.go
Last active August 6, 2016 22:07
gorm bug: Create in PostgreSQL sets incorrect primary key (race condition)
package main
import (
"log"
"sync"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/postgres"
)