You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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)
|
|
}
|