ci: use go1.16rc1

This commit is contained in:
nadoo committed 2021-02-06 00:26:58 +08:00
1 parent 068281cafa
commit 40aadf3e24
14 files changed
+99 -71

No files matched your search

+1 -2
View File
@@ -1,7 +1,6 @@
package rule
import (
"io/ioutil"
"os"
"strings"
@@ -72,7 +71,7 @@ func NewConfFromFile(ruleFile string) (*Config, error) {
// ListDir returns file list named with suffix in dirPth.
func ListDir(dirPth string, suffix string) (files []string, err error) {
files = make([]string, 0, 10)
dir, err := ioutil.ReadDir(dirPth)
dir, err := os.ReadDir(dirPth)
if err != nil {
return nil, err
}