mirror of
https://github.com/abiosoft/colima.git
synced 2026-05-17 12:10:34 +00:00
d29c3ed367
Signed-off-by: Abiola Ibrahim <git@abiosoft.com>
23 lines
476 B
Go
23 lines
476 B
Go
package embedded
|
|
|
|
import (
|
|
"embed"
|
|
)
|
|
|
|
//go:embed network k3s defaults images
|
|
var fs embed.FS
|
|
|
|
// FS returns the underlying embed.FS
|
|
func FS() embed.FS { return fs }
|
|
|
|
func read(file string) ([]byte, error) { return fs.ReadFile(file) }
|
|
|
|
// Read reads the content of file
|
|
func Read(file string) ([]byte, error) { return read(file) }
|
|
|
|
// ReadString reads the content of file as string
|
|
func ReadString(file string) (string, error) {
|
|
b, err := read(file)
|
|
return string(b), err
|
|
}
|