Oooo, cursed idea:
-
Oooo, cursed idea:
Can you embed across modules?
Main:
ABC.cool("./static")ABC module:
Go:Embed $foobar
Var cool embed.FS -
@risottobias not sure i follow, but i don't think the embed directive support any kind if variables, only a list of path.Match patterns, so you cant really pass a pattern to the directive. but maybe one could do weird stuff with symlinks/relative paths etc?
embed package - embed - Go Packages
Package embed provides access to files embedded in the running Go program.
(pkg.go.dev)
-
@wader I mean yeah I could cheat and use go generate but at that point eh
There are always silly constraints to features
Copyright © 2024 NodeBB | Contributors