Reformatting a lil sry.

This commit is contained in:
Alex Stevenson 2025-07-30 22:37:27 -04:00
parent 5874be563d
commit fb7a98e823
2 changed files with 14 additions and 16 deletions

30
main.go
View file

@ -9,6 +9,20 @@ import (
_ "github.com/mattn/go-sqlite3"
)
func check(e error) {
if e != nil {
panic(e)
}
}
func prep_query(db *sql.DB, q string) (*sql.Stmt){
statement, err := db.Prepare(q)
check(err)
return statement
}
type User struct {
id int64
name string
@ -58,22 +72,6 @@ type Entity struct {
spawn_line string
}
func check(e error) {
if e != nil {
panic(e)
}
}
func prep_query(db *sql.DB, q string) (*sql.Stmt){
statement, err := db.Prepare(q)
check(err)
return statement
}
func reset_database(db *sql.DB) {
dat, _ := os.ReadFile("setup.sql")
queries := strings.Split(string(dat), ";")

BIN
rpgqui.db

Binary file not shown.