aboutsummaryrefslogtreecommitdiff
path: root/server/database
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-24 15:53:42 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-24 15:53:42 +0530
commit5329b1fd16d0b8940f9526b523676dfb1cdbf317 (patch)
treed65963f6a797e72c2fae8332568bddc00d2293a9 /server/database
parente21a1c15a2e4bf3e51cdd7a5671bbfee5837ef13 (diff)
switching to typescript
Diffstat (limited to 'server/database')
-rw-r--r--server/database/people.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/database/people.go b/server/database/people.go
index 5fc3bf5..4817139 100644
--- a/server/database/people.go
+++ b/server/database/people.go
@@ -14,7 +14,7 @@ import (
_ "github.com/mattn/go-sqlite3"
)
type Person struct {
- ID string
+ ID int
Name string
Address string
Phone string
@@ -28,7 +28,8 @@ func GetAllPeople() []Person {
)
var (
- id, name, address, phone, email string
+ id int
+ name, address, phone, email string
)
for rows.Next() {