package errors type ReadFileError struct { msg string } func NewReadFileError(msg string) *ReadFileError { return &ReadFileError{ msg: msg, } } func (e *ReadFileError) Error() string { return "Read file error: " + e.msg }