(path string)
| 92 | } |
| 93 | |
| 94 | func ReadFile(path string) (string, error) { |
| 95 | fileBytes, err := ReadFileBytes(path) |
| 96 | if err != nil { |
| 97 | return "", err |
| 98 | } |
| 99 | |
| 100 | return string(fileBytes), nil |
| 101 | } |
| 102 | |
| 103 | func ReadFileBytes(path string) ([]byte, error) { |
| 104 | return ReadFileBytesErrPath(path, path) |
no test coverage detected