Skip to content

Instantly share code, notes, and snippets.

View vurihuang's full-sized avatar
:octocat:
undefined

Vuri vurihuang

:octocat:
undefined
View GitHub Profile
@vurihuang
vurihuang / go-orm-with-transaction.go
Last active July 18, 2019 03:04
go orm with transaction.
package main
import (
"errors"
"fmt"
"sync"
_ "github.com/go-sql-driver/mysql"
"github.com/jinzhu/gorm"
)
@vurihuang
vurihuang / go-orm-with-transaction-2.go
Last active May 29, 2023 10:21
go orm with transaction.
package main
import (
"errors"
"fmt"
_ "github.com/go-sql-driver/mysql"
"github.com/jinzhu/gorm"
)