mirror of
https://github.com/foomo/posh.git
synced 2025-10-16 12:45:38 +00:00
15 lines
209 B
Go
15 lines
209 B
Go
package embed
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
"path/filepath"
|
|
)
|
|
|
|
//go:embed scaffold
|
|
var scaffold embed.FS
|
|
|
|
func Scaffold(path string) (fs.FS, error) {
|
|
return fs.Sub(scaffold, filepath.Join("scaffold", path))
|
|
}
|