do some test about m1 can't use gomonkey (issue: macOS permission denied)
use this code to test
package main
import (
"fmt"
"reflect"
"syscall"
do some test about m1 can't use gomonkey (issue: macOS permission denied)
use this code to test
package main
import (
"fmt"
"reflect"
"syscall"
# this util is used to detect file or string bytes encoding | |
# author: lixk | |
# email: 1749498702@qq.com | |
# info: UTF includes ISO8859-1,GB18030 includes GBK,GBK includes GB2312,GB2312 includes ASCII | |
CODES = ['UTF-8', 'UTF-16', 'GB18030', 'BIG5'] | |
# UTF-8 BOM prefix | |
UTF_8_BOM = b'\xef\xbb\xbf' | |