Serhan Şen
9178943e13
Always split by forward slashes when writing the TOC tree.
...
At that point, all slashes are normalized as forward slashes.
2015-03-21 16:36:03 +01:00
Jim Teeuwen
7362d4b6b2
Merge pull request #74 from tschottdorf/master
...
add `mode` and `modTime` flags
2015-03-10 19:22:57 +01:00
Tobias Schottdorf
b5d9eff767
add mode
and modTime
flags
...
In some situations, it is desired to have reproducible runs of `go-bindata`
from a fixed git repository commit. Since mtimes and file modes are not
generally versioned, the newly introduced flags aid in that quest by allowing
to completely replace those two pieces of data by something fixed.
Example:
//go:generate go-bindata -pkg resource -mode 0644 -modtime 1388530800 \
-o ./embedded.go ./ui/...
2015-03-10 19:17:17 +01:00
Jim Teeuwen
040617c5ef
Merge pull request #73 from jbreitbart/master
...
Added MustAsset function.
2015-03-08 22:15:58 +01:00
Jens Breitbart
81e20ed1b7
Added MustAsset function.
2015-03-08 12:42:30 +01:00
Jim Teeuwen
8ee21af0fa
Merge pull request #72 from shurcooL/remove-unused-Config-field
...
Remove unused field in Config.
2015-02-26 02:52:18 +01:00
Dmitri Shuralyov
af127dc2da
Remove unused field in Config.
...
Commit 2c7ab48825
added new struct
InputConfig which contains Path string and Recursive bool. The rest of
go-bindata has been changed to use that.
The Recursive flag inside Config is now completely unused, and should
be removed since it makes code harder to read.
2015-02-25 17:34:33 -08:00
Jim Teeuwen
8ec170e704
Merge pull request #69 from beyang/master
...
add -dev flag, similar to -debug but does not emit absolute file paths
2015-01-27 01:35:24 +01: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
Jim Teeuwen
4a8e91e5cd
Merge pull request #66 from shurcooL/patch-1
...
Update README to mention go get -u.
2015-01-09 11:22:27 +01:00
Dmitri Shuralyov
e3850a4b3c
Update README to mention go get -u.
...
This will help prevent/reduce issues such as #65 .
2015-01-09 01:13:54 -08:00
Jim Teeuwen
452770b024
Merge pull request #64 from riywo/fix/recursive_knownFuncs
...
Fix bug of knownFuncs usage when findFiles is called recursively
2014-12-09 16:43:41 +01:00
Ryosuke IWANAGA
f80b50711d
Fix bug of knownFuncs usage when findFiles is called recursively
2014-12-09 22:07:31 +09:00
Jim Teeuwen
7159dbfa31
Merge pull request #63 from riywo/fix/testdata
...
Update testdata/out
2014-12-09 12:36:31 +01:00
Ryosuke IWANAGA
fc595e391e
Update testdata/out
2014-12-09 14:41:25 +09:00
Jim Teeuwen
f7b87a0a9a
Merge pull request #62 from riywo/restore
...
Add RestoreAsset/RestoreAssets methods
2014-12-08 17:11:19 +01:00
Ryosuke IWANAGA
0267f6e673
Add RestoreAsset/RestoreAssets methods
2014-12-08 23:02:06 +09:00
Jim Teeuwen
9091c617ee
Merge pull request #61 from riywo/add-file-info
...
Add AssetInfo() to use FileInfo
2014-12-08 00:26:27 +01:00
Ryosuke IWANAGA
5dec5f37be
Adjust release mode for AssetInfo()
2014-12-08 07:35:15 +09:00
Ryosuke IWANAGA
f9f833bc6e
Add AssetInfo() into debug mode using type asset
2014-12-08 07:31:35 +09:00
Jim Teeuwen
f94581bd91
Merge pull request #59 from jwforres/sort_sooner
...
Sort before generating unique function names to get stable output
2014-11-25 11:17:39 +01:00
Jessica Forrester
fcbedc59d6
Sort before generating unique function names to get stable output
2014-11-24 16:10:21 -05:00
Jim Teeuwen
bbd0c6e271
Merge pull request #56 from jwforres/fix_compilation_mem_bloat
...
Fix extreme memory bloat during compile time. Also, when strings are valid UTF-8 inline them directly as raw strings when in uncompressed mode.
2014-11-20 18:47:17 +01:00
Jessica Forrester
2c5bf09f1b
Fix extreme memory bloat during compile time. When using uncompressed mode show raw UTF-8 strings for better diffs.
2014-11-20 10:29:22 -05:00
Jim Teeuwen
da92400a92
Merge pull request #55 from shurcooL/patch-1
...
Fix Asset signature in README.
2014-11-16 11:22:31 +01:00
Dmitri Shuralyov
0e05e3a19d
Fix Asset signature in README.
...
See https://github.com/jteeuwen/go-bindata/pull/54#discussion_r20400279 .
2014-11-15 19:45:57 -08:00
Jim Teeuwen
1796683e4d
Merge pull request #54 from arschles/fix-readme
...
fixing the readme to indicate err return
2014-11-15 01:21:54 +01:00
Aaron Schlesinger
8f6e0a3425
fixing the readme to indicate err return
...
from a test that I wrote in https://github.com/arschles/go-bindata-test , it looks like go-bindata generates an Asset(...) function that returns an error when the file isn't found
2014-11-14 14:38:19 -08:00
Jim Teeuwen
1743f47c01
Merge pull request #50 from liggitt/sorted_order
...
Output TOC and tree in sorted order
2014-09-29 23:50:12 +02:00
Jordan Liggitt
853793af8f
Output TOC and tree in sorted order to make output stable between invocations. Addresses issue #49
2014-09-29 16:32:04 -04:00
jimt
93b909d149
Merge pull request #47 from stephens2424/master
...
Appending a count for filenames that end up being duplicated by
2014-08-18 04:00:46 +02:00
Stephen Searles
cfd1b4bd08
Appending a count for filenames that end up being duplicated by
...
sanitization. Addresses issue #46 .
2014-08-17 17:15:30 -07:00
jimt
64e31e0c92
Merge pull request #43 from Byron/master
...
AssetDir is now able to list the data root.
2014-08-07 16:44:26 +02:00
Sebastian Thiel
6ca6b73691
AssetDir is now able to list the data root.
...
Previously, it was impossible to get a listing of entries right underneath
the data root.
Such a query is now possible by passing an empty string as data root.
2014-08-07 16:24:25 +02:00
jimt
388b47b5ff
Merge pull request #42 from opennota/files_as_params
...
Accept individual files as parameters
2014-08-05 15:59:05 +02:00
opennota
6347e7a31c
Accept individual files as parameters
2014-08-05 19:23:20 +07:00
jimt
b040f60a8c
Merge pull request #41 from ctl80/patch-1
...
Fixing small grammar error.
2014-08-01 14:18:09 +02:00
ctl80
68a53ac0c2
Fixing small grammar error.
2014-08-01 06:49:15 -05:00
jimt
c3d7350481
Merge pull request #40 from elazarl/patch-1
...
Refer to go-bindata-assetfs in README
2014-07-14 11:06:04 +02:00
Elazar Leibovich
d47bbf733e
refer to go-bindata-assetfs in README
2014-07-14 06:50:09 +03:00
jimt
54e5992f47
Merge pull request #39 from elazarl/pullreq
...
Support directory listing with AssetDir(dirname string)
2014-07-13 15:34:24 +02:00
Elazar Leibovich
c15090e68a
Support directory listing with AssetDir(dirname string)
...
Signed-off-by: Elazar Leibovich <elazarl@gmail.com>
2014-07-13 12:50:11 +03:00
Jim Teeuwen
d3feb9534c
Removes unnecessary return in writeReleaseAsset
. This satisfies
...
the rules for `go vet`. Addresses issue #35
Signed-off-by: Jim Teeuwen <jimteeuwen@gmail.com>
2014-06-09 12:31:18 +02: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
jimt
394d5b27c0
Merge pull request #32 from XenoPhex/master
...
Asset retrieval is independent of OS Path
2014-05-16 20:22:52 +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
jimt
4b70a41eb8
Merge pull request #31 from yosssi/fix-toc-footer
...
Remove the unnecessary line break of the TOC footer
2014-05-12 17:52:26 +02:00
yosssi
ff2ab748eb
Remove the unnecessary line break of the TOC footer
2014-05-13 00:39:28 +09:00
jimt
8abc1cae37
Merge pull request #30 from yosssi/add-assetnames
...
Add `AssetNames` function which returns the names of the assets.
2014-05-12 12:34:24 +02:00
yosssi
e764a84fdf
Fix the following things:
...
* Change `for name, _ := range _bindata` to `for name := range _bindata {`
* Format the souce codes
2014-05-12 18:15:42 +09:00