19 lines
562 B
Go
19 lines
562 B
Go
//go:build !ship
|
|
|
|
package runtimeassets
|
|
|
|
import (
|
|
"io/fs"
|
|
)
|
|
|
|
// ReadFile returns ErrNotExist in ordinary builds, which continue to use the
|
|
// editable files in the project directory.
|
|
func ReadFile(name string) ([]byte, error) { return nil, fs.ErrNotExist }
|
|
|
|
// ReadDir returns ErrNotExist in ordinary builds, which continue to use the
|
|
// editable files in the project directory.
|
|
func ReadDir(name string) ([]fs.DirEntry, error) { return nil, fs.ErrNotExist }
|
|
|
|
// Bootstrap is intentionally a no-op outside shipping builds.
|
|
func Bootstrap() error { return nil }
|