Set up for ch.5.3
-
Step 1) Download and install sqlite 3.
-
Step 2) Run
sqlite3 foo.dbto create a databased calledfoo. -
Step 3) Create the
userinfotable in sqlite usingschema.sql.Read and run sql statements
sqlite> .read schema.sqlShow tables
sqlite> .tables userinfo -
Step 4) Exit sqlite.
sqlite> .exit -
Step 5) Run
go getto download and install remote packages. -
Step 6) Run the program with
go run main.go