You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am aware of the embed.FS function, however, I feel like it will be more efficient to just use a map or array instead of a complete FS.
In addition, this will simplify the code which is one of Go's goal.
package example
import (
"embed"
)
//go:embed file1 file2 file2 ...varfileContentsMapmap[string]string// key would be file name while value is the file's content//go:embed file1 file2 file2 ...varfileContentsArrays []string
The text was updated successfully, but these errors were encountered:
Proposal Details
I am aware of the
embed.FS
function, however, I feel like it will be more efficient to just use a map or array instead of a complete FS.In addition, this will simplify the code which is one of Go's goal.
The text was updated successfully, but these errors were encountered: