语音修改
This commit is contained in:
@@ -3,8 +3,8 @@ package event
|
||||
import (
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
"strconv"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -34,5 +34,11 @@ func TestDC(t *testing.T) {
|
||||
|
||||
// 十进制字符串转十六进制
|
||||
func Test10Two16(t *testing.T) {
|
||||
fmt.Println(strconv.FormatInt(11, 16)) // 2 to 10
|
||||
//fmt.Println(strconv.FormatInt(11, 16)) // 2 to 10
|
||||
//for _, v := range strings.Split("324c", "d") {
|
||||
// fmt.Println(v)
|
||||
//}
|
||||
hexPrefix, _ := jxutils.Utf8ToGbk([]byte("[8]sounda14"))
|
||||
hexPrefixStr := hex.EncodeToString(hexPrefix)
|
||||
fmt.Println(hexPrefixStr)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user