mirror of
https://github.com/zellyn/goapple2.git
synced 2024-10-15 03:24:16 +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
|
|
}
|