Patrick O'brien
88cde8df0c
Made new core package to hold core of app
...
* This was primarily done so it can be used as a library in ABCWeb and
other apps.
2017-01-14 13:13:55 +10:00
Aaron L
9e4b5b750c
Refactor output.
...
- Simplify several methods
- Gofmt full output of templates, not individual pieces
- Re-use a global buffer to use less memory during template generation
- Simplify the tests since the main test is responsible for checking
everything.
2016-09-24 00:51:02 -07:00
Patrick O'brien
6ba9e17ebf
Fix buf call after put buffer call
2016-09-04 09:29:59 +10:00
Aaron L
2567a60a25
Rename some files to keep sanity
2016-08-17 23:48:37 -07:00
Aaron L
5360d3094e
Use errors package all over the project
...
In general:
errors.New("thing") -> errors.New
fmt.Errorf("thing %s", arg) -> errors.Errorf
fmt.Errorf("thing %v", err) -> errors.Wrap
fmt.Errorf("thing %s %v", arg, err) -> errors.Wrapf
2016-08-13 11:37:16 -07:00
Aaron L
e08eacad05
Stop dividing templates up, and execute by name
...
- This allows us to use templates defined from anywhere in other
templates.
2016-07-16 23:55:15 -07:00
Aaron L
41ce2b511b
Remove debug output
2016-06-27 00:00:19 -07:00
Aaron L
6dac631a93
Add new functions to support more templating
...
- Add joinSlices
- Add ways to pull apart a slice of SQLColumnDef
- Try to stop generating join tables (but it still gens for some reason)
2016-06-26 23:59:27 -07:00
Aaron L
fb9653e0a1
Remove debug output
2016-06-26 23:56:45 -07:00
Aaron L
642069645b
Formatting errors are no longer completely useless
2016-06-26 23:56:45 -07:00
Aaron L
4d0742b6f3
Fix up a number more template errors from refactor
...
- Add quoteWrap function to help where some of the old helpers were
covering.
2016-06-19 22:58:14 -07:00
Aaron L
5fbcb27f3f
Fix 00_helper filename by truncating singletons.
...
- Also add better error output for when a formatting error occurs.
2016-06-19 22:22:23 -07:00
Aaron L
56234e37a1
Move main back to root folder.
...
- Change everything to package main.
- Make main a little more user friendly.
2016-06-12 11:19:23 -07:00
Aaron L
5fc40c9226
Refactor output
2016-06-12 00:32:46 -07:00
Aaron L
8757c8a184
Refactor entire project :D
...
- Move most files to root
- Remove cmds directory in favor of cmd directory with binary
- Remove all cobra from main
2016-06-11 18:25:00 -07:00