4e7d474fb3
FIXED: * tplx/sprigx would throw errors on dnsx.IsPtr, because it returns a bool and net.IP instead of a boolen and optional error. Fixed by adding dnsx.IsPtrChk and using that instead.
19 lines
346 B
Go
19 lines
346 B
Go
package main
|
|
|
|
import (
|
|
"io/fs"
|
|
)
|
|
|
|
// Close is a no-op, but used to conform to mergedFsMember.
|
|
func (e *embedFsMember) Close() (err error) { return }
|
|
|
|
// Stat wraps fs.Stat on the embeded filesystem.
|
|
func (e *embedFsMember) Stat(fnm string) (stat fs.FileInfo, err error) {
|
|
|
|
if stat, err = fs.Stat(e.FS, fnm); err != nil {
|
|
return
|
|
}
|
|
|
|
return
|
|
}
|