hackathon/cmd/tmp/main.go

18 lines
306 B
Go

2021-12-23 03:09:44 +07:00
package main
import (
"context"
"log"
"github.com/hhhapz/codequest/db"
"github.com/hhhapz/codequest/models"
"github.com/k0kubun/pp/v3"
)
func main() {
d, _ := db.NewDB("db.sqlite")
models.SetLogger(log.Printf)
pp.Println(models.QuestionSubmissions(context.Background(), d.DB, "2", "idk", 2))
}