-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid having a big big file #17
Conversation
I will merge this until I figure it out how to to test it. |
convert.go
Outdated
if c.Debug || c.Dev { | ||
err = writeDebug(bfd, c, toc) | ||
if c.Split { | ||
return translateToDir(c, toc, wd) | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unneeded else
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, i know cause the return.
convert_to_dir.go
Outdated
|
||
func generateCommonFile(c *Config, toc []Asset) error { | ||
// Create output file. | ||
fd, err := os.Create(filepath.Join(c.Output, "common.go")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to use bindata.go
as the common file, to minimize conflict if user want to generate to directory that has the common.go
(since -split
now assume output as dir, user can not change the output file name.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, u're right, it's better.
Thank you @ZaniaDeveloper @corebreaker . |
Fix up issue #13.
Add
-split
option to avoid generating big file.