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