Renaming vars

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

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

Loading…
Cancel
Save