fs.File regular-file

master
Charles Iliya Krempeaux 2022-12-14 06:16:55 -08:00
parent 3fc35d7a32
commit b2733b338b
2 changed files with 7 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package arbitrary
import ( import (
"math/rand" "math/rand"
"io/fs"
"net" "net"
"time" "time"
) )
@ -45,6 +46,11 @@ func PhoneNumber() string {
return Default.PhoneNumber() return Default.PhoneNumber()
} }
// RegularFile returns an arbitrary fs.File regular-file.
func RegularFile() fs.File {
return Default.RegularFile()
}
func Runes(a ...interface{}) []rune { func Runes(a ...interface{}) []rune {
return Default.Runes(a...) return Default.Runes(a...)
} }

View File

@ -4,6 +4,7 @@ import (
"io/fs" "io/fs"
) )
// RegularFile returns an arbitrary fs.File regular-file.
func (arb T) RegularFile() fs.File { func (arb T) RegularFile() fs.File {
var fns [](func()fs.File) = [](func()fs.File){ var fns [](func()fs.File) = [](func()fs.File){