Commit Graph

14 Commits (master)

Author SHA1 Message Date
Tobias Schmidt 8ed2cd0f6d Fix go format of generated code
The following changes make the generated code go fmt compatible.
2015-10-23 03:48:06 -04:00
Tamir Duberstein ff362dd1f1 Use `filepath` everywhere instead of `path`
For non-slashed paths (e.g. Windows) `path` does the wrong thing.
Sadly this is not documented, but a cursory glance at the go sources
reveals that `filepath` uses `os.PathSeparator` everywhere while
`path` uses a literal `"/"`.
2015-07-02 11:44:17 -04:00
Tamir Duberstein ffff253524 bindataRead 2015-05-11 15:42:14 -04:00
Beyang Liu 0efad67aa4 add -dev flag, similar to -debug but does not emit absolute file paths 2015-01-26 15:56:13 -08:00
Ryosuke IWANAGA 0267f6e673 Add RestoreAsset/RestoreAssets methods 2014-12-08 23:02:06 +09:00
Ryosuke IWANAGA f9f833bc6e Add AssetInfo() into debug mode using type asset 2014-12-08 07:31:35 +09:00
Jim Teeuwen 17800c65a0 Fixes formatting of various generated outputs to be
more compatible with `go fmt`. This partially addresses
issue #34

Signed-off-by: Jim Teeuwen <jimteeuwen@gmail.com>
2014-05-28 14:43:02 +02:00
Anand Gaitonde and Michael Maximilien f93f031745 Asset retrieval is independent of OS Path
That is for Windows \\ are replaced with / since the
asset map uses paths with /
2014-05-16 10:34:04 -07:00
Jim Teeuwen 3834e2fe48 Fixes some code comments. 2014-03-07 22:13:34 +01:00
Alan Shreve 8e87ecda2a return errors from calls to Asset() instead of ever panicking 2013-11-08 21:28:49 +02:00
Jim Teeuwen cca9f8e6b7 Removes output of both debug and release code. There really
is no point to this.

All output (including TOC) is now written to a single output file.
This allows us to have different output file names to be specified.
Each for a different version generated code with its own build tags.
Consequently offering much greater flexibility in the way generated
code is to be used in a host application.

Fixes test outputs to match all these changes.
2013-10-30 14:45:04 +01:00
Jim Teeuwen 12a480432a Implements writing of TOC file. Refactors code for debug and release
writers. Adds output examples for various output modes.
2013-10-30 13:14:58 +01:00
Jim Teeuwen ae16b2b3c6 Finishes imlpementing the various debug and release output
modes. For debug we always read assets from disk and ignore
the compression and memcopy options. For release mode, the
assets are all embedded and the compression/memcopy options
are taken into account.
2013-10-30 02:16:14 +01:00
Jim Teeuwen 17f2782db6 Implements output of debug code.
Partially imlpements output of release code.
Reorganizes testdata directory.
2013-10-30 02:11:04 +01:00