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 operaSystem
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestFile_ByteToBase64(t *testing.T) {
|
|
byteStr := []byte("hello world!")
|
|
base64Str := operaSystem.ByteToBase64(byteStr)
|
|
byteResult, _ := operaSystem.Base64ToByte(base64Str)
|
|
fmt.Println(base64Str)
|
|
fmt.Println(byteResult)
|
|
}
|