升级FileType枚举类型定义
This commit is contained in:
22
file_test.go
Normal file
22
file_test.go
Normal file
@ -0,0 +1,22 @@
|
||||
// Package serialize ...
|
||||
//
|
||||
// Description : serialize ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 2024-11-15 15:36
|
||||
package serialize
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test_file_ReadDirFileList(t *testing.T) {
|
||||
f := &file{}
|
||||
fileList, err := f.ReadDirFileList("/Users/zhangdeman/project/go-project/wrapper", true, true)
|
||||
if nil != err {
|
||||
panic(err.Error())
|
||||
}
|
||||
fmt.Println(JSON.MarshalForString(fileList))
|
||||
}
|
Reference in New Issue
Block a user