🎇 支持mysql
This commit is contained in:
@@ -15,18 +15,18 @@ func TestSplit(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestPassword(t *testing.T) {
|
||||
fullName:="hello.password-xhf"
|
||||
index:=strings.Index(fullName,".password-")
|
||||
name:=fullName[:index]
|
||||
password:=fullName[index+10:]
|
||||
fmt.Printf("name:%s, password:%s\n",name,password)
|
||||
fullName := "hello.password-xhf"
|
||||
index := strings.Index(fullName, ".password-")
|
||||
name := fullName[:index]
|
||||
password := fullName[index+10:]
|
||||
fmt.Printf("name:%s, password:%s\n", name, password)
|
||||
}
|
||||
|
||||
func TestDir(t *testing.T) {
|
||||
dir,file:=filepath.Split("root")
|
||||
fmt.Printf("dir:%s\nfile:%s\n",dir,file)
|
||||
dir, file := filepath.Split("root")
|
||||
fmt.Printf("dir:%s\nfile:%s\n", dir, file)
|
||||
}
|
||||
|
||||
func TestMD5(t *testing.T) {
|
||||
fmt.Printf("%s\n", utils.Get16MD5Encode("123456"))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user