mirror of
https://github.com/zellyn/goapple2.git
synced 2024-06-09 12:29:30 +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
|
|
}
|