Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 9ea60b3

Browse files
committed
Use ioutil.ReadFile() for backward compatibility with Go 1.15.
1 parent fdeca2c commit 9ea60b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mockgen/mockgen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func main() {
165165
if err := os.MkdirAll(filepath.Dir(*destination), os.ModePerm); err != nil {
166166
log.Fatalf("Unable to create directory: %v", err)
167167
}
168-
existing, err := os.ReadFile(*destination)
168+
existing, err := ioutil.ReadFile(*destination)
169169
if err != nil && !errors.Is(err, os.ErrNotExist) {
170170
log.Fatalf("Failed reading pre-exiting destination file: %v", err)
171171
}

0 commit comments

Comments
 (0)