net.File regular-file text-file

master
Charles Iliya Krempeaux 2022-12-14 06:20:25 -08:00
parent 2078fe8f72
commit 784b3d0ea2
2 changed files with 6 additions and 0 deletions

View File

@ -58,3 +58,8 @@ func Runes(a ...interface{}) []rune {
func String(a ...interface{}) string {
return Default.String(a...)
}
// TextFile returns an arbitrary fs.File regular-file whose content is a text-file.
func TextFile() fs.File {
return Default.TextFile()
}

View File

@ -27,6 +27,7 @@ var (
}
)
// TextFile returns an arbitrary fs.File regular-file whose content is a text-file.
func (arb T) TextFile() fs.File {
var filecontent strfs.Content