1 2 3 4 5 6 7 8 9 10 11 12
package model import ( "database/sql" ) type Object interface { Create(tx *sql.Tx) error Read(tx *sql.Tx) error Update(tx *sql.Tx) error Delete(tx *sql.Tx) error }