Commit Graph

18 Commits

Author SHA1 Message Date
d6f4920507 Add DeleteSync() to generate/template.go. 2018-08-09 16:15:00 -04:00
9653dab9f4 History() now returns the correct type. Added Save(), SaveSync(), Load()
and Delete() to template.
2018-08-09 11:33:22 -04:00
c52d8702b2 Do not save Var.Time to the database. 2018-08-09 09:58:40 -04:00
ee4657a0ed Put the Time field into persist.Var. persist.TVar is no longer needed,
History() now returns []Var.
2018-08-09 09:29:59 -04:00
384de4d02c Simplify generate.go to only look at ast nodes Ident, TypeSwitchStmt,
and FuncDecl.
2018-08-06 13:58:12 -04:00
4c5821c7d5 Refactor pgen to use a visitor struct instead of globals. 2018-08-06 12:35:35 -04:00
2f95327892 Move code generator into its own package. 2018-08-06 12:14:16 -04:00
33821928c9 Move all file handling into main.go. 2018-08-06 12:11:15 -04:00
62c409292b Parse comments in the template and write them to the output files. 2018-08-06 11:06:33 -04:00
bc06994bcf Fix import handling. Handle multiple packages per directory and save
each output package to a different file.
2018-08-06 11:04:25 -04:00
3329fe75df Refactor gen.go into Generator type. 2018-08-06 10:01:40 -04:00
1c3bab0dcc Simplified type handling. 2018-08-04 16:39:39 -04:00
ee4f005b6c Allow users to pass options to persist.New(). Support for bools. 2018-08-04 16:03:00 -04:00
100f65f83a pgen: discover types for composite literals. 2018-08-04 15:41:34 -04:00
0d662564aa Bug fix in gen.go: do not try to write if there is no output. 2018-08-03 16:39:01 -04:00
56ab75dcc2 Changes to test/basic. Confirm that named imports work. 2018-08-03 15:17:04 -04:00
8f78a6c6d2 Register types with encoding/gob. Rewrite test/basic. 2018-08-03 15:14:10 -04:00
b880a5671d Initial commit. 2018-08-03 15:08:30 -04:00