mirror of
https://github.com/pressly/goose.git
synced 2025-07-08 03:29:06 +00:00
15 lines
281 B
Go
15 lines
281 B
Go
package goose
|
|
|
|
import (
|
|
"io/fs"
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
// osFS wraps functions working with os filesystem to implement fs.FS interfaces.
|
|
type osFS struct{}
|
|
|
|
var _ fs.FS = (*osFS)(nil)
|
|
|
|
func (osFS) Open(name string) (fs.File, error) { return os.Open(filepath.FromSlash(name)) }
|