mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 17:52:29 +08:00
17 lines
372 B
Go
17 lines
372 B
Go
package wails
|
|
|
|
import homedir "github.com/mitchellh/go-homedir"
|
|
|
|
// RuntimeFileSystem exposes file system utilities to the runtime
|
|
type RuntimeFileSystem struct {
|
|
}
|
|
|
|
func newRuntimeFileSystem() *RuntimeFileSystem {
|
|
return &RuntimeFileSystem{}
|
|
}
|
|
|
|
// HomeDir returns the user's home directory
|
|
func (r *RuntimeFileSystem) HomeDir() (string, error) {
|
|
return homedir.Dir()
|
|
}
|