mirror of
https://github.com/zellyn/goapple2.git
synced 2024-06-10 18:29:31 +00:00
14 lines
205 B
Go
14 lines
205 B
Go
|
package util
|
||
|
|
||
|
import (
|
||
|
"io/ioutil"
|
||
|
)
|
||
|
|
||
|
func ReadRomOrDie(filename string) []byte {
|
||
|
bytes, err := ioutil.ReadFile(filename)
|
||
|
if err != nil {
|
||
|
panic("Cannot read ROM file: " + filename)
|
||
|
}
|
||
|
return bytes
|
||
|
}
|