(f1, f2 string)
| 72 | } |
| 73 | |
| 74 | func diff(f1, f2 string) (bool, error) { |
| 75 | b1, err := os.ReadFile(f1) |
| 76 | if err != nil { |
| 77 | return false, fmt.Errorf("can't read file 1 %q: %s", f1, err) |
| 78 | } |
| 79 | |
| 80 | b2, err := os.ReadFile(f2) |
| 81 | if err != nil { |
| 82 | return false, fmt.Errorf("can't read file 2 %q: %s", f2, err) |
| 83 | } |
| 84 | |
| 85 | return bytes.Equal(b1, b2), nil |
| 86 | } |
no outgoing calls
no test coverage detected