Skip to content

> Consider the following code: #58526

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

Closed
00z20 opened this issue Feb 14, 2023 · 0 comments
Closed

> Consider the following code: #58526

00z20 opened this issue Feb 14, 2023 · 0 comments

Comments

@00z20
Copy link

00z20 commented Feb 14, 2023

          > Consider the following code:
//go:embed /example/path
var data embed.FS

f, err := data.Open("example/path/file.txt")

Since fs.ValidPath, sadly Open will not be able to handle this / at the beginning, but it could be treated as module's root (in go:embed directive) and than removed from embed.FS.

Originally posted by @00z20 in #58525 (comment)

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Feb 14, 2023
@golang golang locked as spam and limited conversation to collaborators Feb 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants