(path string)
| 178 | } |
| 179 | |
| 180 | func loadFile(path string) ([]byte, error) { |
| 181 | data, err := os.ReadFile(path) |
| 182 | if err != nil { |
| 183 | return nil, fmt.Errorf("failed to read file %q: %v", path, err) |
| 184 | } |
| 185 | return data, err |
| 186 | } |
| 187 | |
| 188 | func loadProtoFile(path string, format FileFormat, out protoreflect.ProtoMessage) error { |
| 189 | unmarshaller := proto.Unmarshal |
no outgoing calls
no test coverage detected