daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. func Prepare(db *sqlx.DB, stmt *sqlx.Stmt, query String) error {
  2.     res,err := db.PreparexStatement(context.Background(), query)
  3.     stmt = res
  4.     return err
  5. }
  6.    
  7. func Boot(db *sqlx.DB, stmt *sqlx.Stmt, query String) {
  8.     err := Prepare(db, stmt, query)
  9.     if err != nil {
  10.         //handle
  11.     }
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top