mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 22:13:36 +08:00
14 lines
256 B
Go
14 lines
256 B
Go
//go:build dev
|
|
|
|
package assetserver
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
func (a *DesktopAssetServer) ReadFile(filename string) ([]byte, error) {
|
|
a.LogDebug("Loading file from disk: %s", filename)
|
|
return os.ReadFile(filepath.Join(a.assetdir, filename))
|
|
}
|