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

Cannot declare multiple directories with go-bindata-assetfs #58 #59

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

joegasewicz
Copy link
Contributor

@joegasewicz joegasewicz commented Apr 12, 2022

Could also be a fix for #14

@joegasewicz joegasewicz changed the title Cannot declare multiple directories with go-bindata-assetfs #58 Cannot declare multiple directories with go-bindata-assetfs #58 #14 Apr 19, 2022
@joegasewicz joegasewicz changed the title Cannot declare multiple directories with go-bindata-assetfs #58 #14 Cannot declare multiple directories with go-bindata-assetfs #58 #14 Apr 19, 2022
@joegasewicz joegasewicz changed the title Cannot declare multiple directories with go-bindata-assetfs #58 #14 Cannot declare multiple directories with go-bindata-assetfs #58 Apr 19, 2022
@@ -118,6 +129,17 @@ func assetFS() *assetfs.AssetFS {
func AssetFS() *assetfs.AssetFS {
return assetFS()
}`)
fmt.Fprintln(out, `
// AssetDIR similiar to assetFS() but requires a directory name
func AssetDIR(dir string) *assetfs.AssetFS {
Copy link
Contributor Author

@joegasewicz joegasewicz Apr 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bindata already generates a function with name of AssetDir maybe AssetDIR is too similar?

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

Successfully merging this pull request may close these issues.

1 participant