Renaming vars

data-work
Mike Holloway 3 months ago
parent 2f095a8928
commit 84155e8590
  1. 2
      main.go

@ -23,7 +23,7 @@ func main() {
anvildb := ConnectAnvilDB(dsn) anvildb := ConnectAnvilDB(dsn)
// Turn these into funcs with error handling, logging, return vals etc. // Turn these into funcs with error handling, logging, return vals etc.
if usererr := anvildb.NewSelect(). if usererr := anvildb.NewSelect().
// Turning *Feed into an interface &Feed{} // Turning *User into an interface &User{}
Model(&User{}). Model(&User{}).
OrderExpr("user_uuid ASC"). OrderExpr("user_uuid ASC").
Limit(10). Limit(10).

Loading…
Cancel
Save