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

[noodle] Add a larger interface for different types of http.FileSystem implementation #84

Open
at15 opened this issue Aug 26, 2018 · 0 comments
Milestone

Comments

@at15
Copy link
Member

at15 commented Aug 26, 2018

Except Open, I want to have handy method to get content of a file directly https://github.com/GeertJohan/go.rice#package-usage, maybe a Tree method, serve http file etc.

// find a rice.Box
templateBox, err := rice.FindBox("example-templates")
if err != nil {
	log.Fatal(err)
}
// get file contents as string
templateString, err := templateBox.String("message.tmpl")
if err != nil {
	log.Fatal(err)
}
@at15 at15 added this to the 0.0.8 milestone Aug 26, 2018
at15 added a commit that referenced this issue Aug 26, 2018
- noodle bowel with different types of noodle
@at15 at15 modified the milestones: 0.0.9, future Dec 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant