package file import ( "fmt" "testing" ) func TestFile_ByteToBase64(t *testing.T) { byteStr := []byte("hello world!") base64Str := file.ByteToBase64(byteStr) byteresult, _ := file.Base64ToByte(base64Str) fmt.Println(base64Str) fmt.Println(byteresult) }