mirror of
https://github.com/yincongcyincong/wechat_chatter.git
synced 2026-07-15 10:26:52 +08:00
13 lines
187 B
Go
13 lines
187 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestFileToBase64(t *testing.T) {
|
|
// 测试文件不存在
|
|
f, _ := FileToBase64("/Users/yincong/Desktop/2_base64.txt")
|
|
fmt.Println(f)
|
|
}
|