fix: receive method to function

This commit is contained in:
xuthus5 2024-03-20 23:45:19 +08:00
parent 06d0f1cec5
commit d0a43019bc
Signed by: xuthus5
GPG Key ID: A23CF9620CBB55F9
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ func NewParser(file string) (*Parser, error) {
}, nil
}
func (parser *Parser) CreateFile(filename string) error {
func CreateFile(filename string) error {
// 检查文件是否存在
if _, err := os.Stat(filename); err == nil {
return nil