From 9a917e98a5f342d4ab08509c48264c30e8a5e34b Mon Sep 17 00:00:00 2001 From: Stephen McQuay Date: Thu, 28 Feb 2013 23:25:51 -0800 Subject: [PATCH] started thinking about storing server-side info about kids --- children.go | 6 ++++++ main.go | 1 + 2 files changed, 7 insertions(+) create mode 100644 children.go diff --git a/children.go b/children.go new file mode 100644 index 0000000..81c48a3 --- /dev/null +++ b/children.go @@ -0,0 +1,6 @@ +package main + +type Child struct { + Name string + Money int +} diff --git a/main.go b/main.go index b709d4f..d9058ef 100644 --- a/main.go +++ b/main.go @@ -12,6 +12,7 @@ import ( var addr = flag.String("addr", ":8000", "address I'll listen on.") var static_files = flag.String("static", "./static", "location of static files") var passes_file = flag.String("passes", "passwds.json", "the password database") +var db_file = flag.String("children", "children.json", "the children database") var template_dir = flag.String("templates", "templates", "template dir") var add_pw = flag.String("passwd", "", "add this pass to the db") var check_pw = flag.String("checkpw", "", "check if this pw is in db")