16 lines
199 B
Go
16 lines
199 B
Go
package utils
|
|
|
|
import (
|
|
"net/http"
|
|
"os"
|
|
"path"
|
|
)
|
|
|
|
type RealFS struct {
|
|
Path string
|
|
}
|
|
|
|
func (fs RealFS) Open(filename string) (http.File, error) {
|
|
return os.Open(path.Join(fs.Path, filename))
|
|
}
|
|
|