Skip to content
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

box lists its contents but should not #76

Closed
markfink opened this issue Jan 15, 2016 · 1 comment
Closed

box lists its contents but should not #76

markfink opened this issue Jan 15, 2016 · 1 comment

Comments

@markfink
Copy link

thanks for sharing this code. Is is very helpful.

Not sure if it matters, I used "rice embed-syso" to create the box.
There is one thing that is a little bit disturbing for me. Every time I run the code the box prints out all the contents to the console. I have not yet found out why it does that. I think the expected behavior for packages is to "shut up" or return an error?

This is how I use the box:

box := rice.MustFindBox("web")
appFileServer := http.FileServer(box.HTTPBox())

Any chance that this configurable?

@GeertJohan
Copy link
Owner

embed-syso is not stable yet, and should not be used. I'm not sure if it ever will become stable. Please use the embed-go or append strategies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants