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
The `fs` package provides a flexible file system abstraction for working with both local and embedded file systems. It offers various utilities for file operations such as checking existence, reading files, searching, and more.
11
6
@@ -40,7 +35,7 @@ Creates a `FlexibleFS` instance backed by the provided embedded file system.
40
35
//go:embed *.go
41
36
varembeds embed.FS
42
37
43
-
fs:= fs.NewEmbed(embeds)
38
+
fs:= fs.NewEmbed(embeds, "prefix")
44
39
```
45
40
46
41
## Exists
@@ -125,6 +120,30 @@ if err != nil {
125
120
fmt.Println("Found files:", results)
126
121
```
127
122
123
+
## PathOf
124
+
125
+
Joins the provided path parts into a single normalized path, applying the file system's prefix if applicable.
0 commit comments