(filePath string)
| 1053 | } |
| 1054 | |
| 1055 | func ReadYAMLFile(filePath string) (interface{}, error) { |
| 1056 | fileBytes, err := files.ReadFileBytes(filePath) |
| 1057 | if err != nil { |
| 1058 | return nil, err |
| 1059 | } |
| 1060 | |
| 1061 | fileInterface, err := ReadYAMLBytes(fileBytes) |
| 1062 | if err != nil { |
| 1063 | return nil, errors.Wrap(err, filePath) |
| 1064 | } |
| 1065 | |
| 1066 | return fileInterface, nil |
| 1067 | } |
| 1068 | |
| 1069 | func ReadYAMLFileStrMap(filePath string) (map[string]interface{}, error) { |
| 1070 | parsed, err := ReadYAMLFile(filePath) |
no test coverage detected