Other: Add v2 to module name

This commit is contained in:
James Houlahan
2022-05-31 15:54:04 +02:00
parent 098956b81a
commit 4edf2eb92c
230 changed files with 696 additions and 642 deletions

View File

@ -130,7 +130,7 @@ func createTestFolder(dirPath, dirType string) error {
path := filepath.Join(dirPath, "testpath")
switch dirType {
case FileType:
err = ioutil.WriteFile(path, []byte("This is a test"), 0640)
err = ioutil.WriteFile(path, []byte("This is a test"), 0o640)
if err != nil {
return err
}
@ -142,12 +142,12 @@ func createTestFolder(dirPath, dirType string) error {
}
case DirType:
err = os.MkdirAll(path, 0750)
err = os.MkdirAll(path, 0o750)
if err != nil {
return err
}
err = ioutil.WriteFile(filepath.Join(path, "another_file"), []byte("This is a test"), 0640)
err = ioutil.WriteFile(filepath.Join(path, "another_file"), []byte("This is a test"), 0o640)
if err != nil {
return err
}