net.File regular-file html-file
parent
784b3d0ea2
commit
61ef62e23d
|
@ -16,6 +16,11 @@ func Bool() bool {
|
|||
return Default.Bool()
|
||||
}
|
||||
|
||||
// HTMLFile returns an arbitrary fs.File regular-file whose content is an HTML file.
|
||||
func HTMLFile() fs.File {
|
||||
return Default.HTMLFile()
|
||||
}
|
||||
|
||||
// NetAddr returns an arbitrary net.Addr.
|
||||
func NetAddr() net.Addr {
|
||||
return Default.NetAddr()
|
||||
|
|
|
@ -51,6 +51,7 @@ var (
|
|||
}
|
||||
)
|
||||
|
||||
// HTMLFile returns an arbitrary fs.File regular-file whose content is an HTML file.
|
||||
func (arb T) HTMLFile() fs.File {
|
||||
|
||||
var filecontent strfs.Content
|
||||
|
|
Loading…
Reference in New Issue