Fix call expressions involving functions from stdlib, update to go-1.11
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
func main() {
|
||||
var buf [4]byte
|
||||
//fmt.Println(buf)
|
||||
s := base64.RawStdEncoding.EncodeToString(buf[:])
|
||||
s := base64.RawStdEncoding.EncodeToString(buf)
|
||||
//fmt.Println(base64.RawStdEncoding)
|
||||
fmt.Println(s)
|
||||
}
|
||||
|
||||
@@ -851,6 +851,7 @@ func (interp *Interpreter) Cfg(root *Node) []*Node {
|
||||
if method, ok := n.typ.rtype.MethodByName(n.child[1].ident); ok {
|
||||
if method.Func.IsValid() {
|
||||
n.rval = method.Func
|
||||
n.typ.rtype = method.Func.Type()
|
||||
n.run = nop
|
||||
//log.Println(n.index, "select method", n.rval, method.Index)
|
||||
} else {
|
||||
|
||||
@@ -431,36 +431,26 @@ func callBinInterfaceMethod(n *Node, f *Frame) {
|
||||
func callBinMethod(n *Node, f *Frame) {
|
||||
fun := n.child[0].rval
|
||||
in := make([]reflect.Value, len(n.child))
|
||||
in[0] = reflect.ValueOf(value(n.child[0].child[0], f))
|
||||
//log.Println(n.index, "in0", in[0])
|
||||
val := value(n.child[0].child[0], f)
|
||||
switch val.(type) {
|
||||
case reflect.Value:
|
||||
in[0] = val.(reflect.Value)
|
||||
default:
|
||||
in[0] = reflect.ValueOf(val)
|
||||
}
|
||||
for i, c := range n.child[1:] {
|
||||
//log.Println(value(c, f))
|
||||
if c.kind == Rvalue {
|
||||
in[i+1] = value(c, f).(reflect.Value)
|
||||
c.frame = f
|
||||
} else {
|
||||
//log.Println("get reflect value")
|
||||
in[i+1] = reflect.ValueOf(value(c, f))
|
||||
}
|
||||
}
|
||||
//log.Println(n.index, "in callBinMethod", n.ident, in, in[0].MethodByName(n.child[0].child[1].ident).Type())
|
||||
/*
|
||||
if !fun.IsValid() {
|
||||
fun = in[0].MethodByName(n.child[0].child[1].ident)
|
||||
in = in[1:]
|
||||
log.Println(n.index, "invalid fun", fun)
|
||||
}
|
||||
*/
|
||||
//name := n.child[0].child[1].ident
|
||||
//fun = in[0].Method(4)
|
||||
//log.Println(n.index, name, in[0], fun, fun.Type())
|
||||
fun = in[0].MethodByName(n.child[0].child[1].ident)
|
||||
if !fun.IsValid() {
|
||||
log.Println(n.index, fun)
|
||||
fun = in[0].Elem().MethodByName(n.child[0].child[1].ident)
|
||||
fun = in[0].MethodByName(n.child[0].child[1].ident)
|
||||
in = in[1:]
|
||||
}
|
||||
in = in[1:]
|
||||
//log.Println(in)
|
||||
v := fun.Call(in)
|
||||
for i := 0; i < n.fsize; i++ {
|
||||
f.data[n.findex+i] = v[i].Interface()
|
||||
|
||||
@@ -16,6 +16,7 @@ func init() {
|
||||
"NewCTR": reflect.ValueOf(cipher.NewCTR),
|
||||
"NewGCM": reflect.ValueOf(cipher.NewGCM),
|
||||
"NewGCMWithNonceSize": reflect.ValueOf(cipher.NewGCMWithNonceSize),
|
||||
"NewGCMWithTagSize": reflect.ValueOf(cipher.NewGCMWithTagSize),
|
||||
"NewOFB": reflect.ValueOf(cipher.NewOFB),
|
||||
}
|
||||
Type["crypto/cipher"] = map[string]reflect.Type{
|
||||
|
||||
@@ -9,36 +9,36 @@ import (
|
||||
|
||||
func init() {
|
||||
Value["crypto/tls"] = map[string]reflect.Value{
|
||||
"Client": reflect.ValueOf(tls.Client),
|
||||
"CurveP256": reflect.ValueOf(tls.CurveP256),
|
||||
"CurveP384": reflect.ValueOf(tls.CurveP384),
|
||||
"CurveP521": reflect.ValueOf(tls.CurveP521),
|
||||
"Dial": reflect.ValueOf(tls.Dial),
|
||||
"DialWithDialer": reflect.ValueOf(tls.DialWithDialer),
|
||||
"ECDSAWithP256AndSHA256": reflect.ValueOf(tls.ECDSAWithP256AndSHA256),
|
||||
"ECDSAWithP384AndSHA384": reflect.ValueOf(tls.ECDSAWithP384AndSHA384),
|
||||
"ECDSAWithP521AndSHA512": reflect.ValueOf(tls.ECDSAWithP521AndSHA512),
|
||||
"ECDSAWithSHA1": reflect.ValueOf(tls.ECDSAWithSHA1),
|
||||
"Listen": reflect.ValueOf(tls.Listen),
|
||||
"LoadX509KeyPair": reflect.ValueOf(tls.LoadX509KeyPair),
|
||||
"NewLRUClientSessionCache": reflect.ValueOf(tls.NewLRUClientSessionCache),
|
||||
"NewListener": reflect.ValueOf(tls.NewListener),
|
||||
"NoClientCert": reflect.ValueOf(tls.NoClientCert),
|
||||
"PKCS1WithSHA1": reflect.ValueOf(tls.PKCS1WithSHA1),
|
||||
"PKCS1WithSHA256": reflect.ValueOf(tls.PKCS1WithSHA256),
|
||||
"PKCS1WithSHA384": reflect.ValueOf(tls.PKCS1WithSHA384),
|
||||
"PKCS1WithSHA512": reflect.ValueOf(tls.PKCS1WithSHA512),
|
||||
"PSSWithSHA256": reflect.ValueOf(tls.PSSWithSHA256),
|
||||
"PSSWithSHA384": reflect.ValueOf(tls.PSSWithSHA384),
|
||||
"PSSWithSHA512": reflect.ValueOf(tls.PSSWithSHA512),
|
||||
"RenegotiateFreelyAsClient": reflect.ValueOf(tls.RenegotiateFreelyAsClient),
|
||||
"RenegotiateNever": reflect.ValueOf(tls.RenegotiateNever),
|
||||
"RenegotiateOnceAsClient": reflect.ValueOf(tls.RenegotiateOnceAsClient),
|
||||
"RequestClientCert": reflect.ValueOf(tls.RequestClientCert),
|
||||
"RequireAndVerifyClientCert": reflect.ValueOf(tls.RequireAndVerifyClientCert),
|
||||
"RequireAnyClientCert": reflect.ValueOf(tls.RequireAnyClientCert),
|
||||
"Server": reflect.ValueOf(tls.Server),
|
||||
"TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA),
|
||||
"Client": reflect.ValueOf(tls.Client),
|
||||
"CurveP256": reflect.ValueOf(tls.CurveP256),
|
||||
"CurveP384": reflect.ValueOf(tls.CurveP384),
|
||||
"CurveP521": reflect.ValueOf(tls.CurveP521),
|
||||
"Dial": reflect.ValueOf(tls.Dial),
|
||||
"DialWithDialer": reflect.ValueOf(tls.DialWithDialer),
|
||||
"ECDSAWithP256AndSHA256": reflect.ValueOf(tls.ECDSAWithP256AndSHA256),
|
||||
"ECDSAWithP384AndSHA384": reflect.ValueOf(tls.ECDSAWithP384AndSHA384),
|
||||
"ECDSAWithP521AndSHA512": reflect.ValueOf(tls.ECDSAWithP521AndSHA512),
|
||||
"ECDSAWithSHA1": reflect.ValueOf(tls.ECDSAWithSHA1),
|
||||
"Listen": reflect.ValueOf(tls.Listen),
|
||||
"LoadX509KeyPair": reflect.ValueOf(tls.LoadX509KeyPair),
|
||||
"NewLRUClientSessionCache": reflect.ValueOf(tls.NewLRUClientSessionCache),
|
||||
"NewListener": reflect.ValueOf(tls.NewListener),
|
||||
"NoClientCert": reflect.ValueOf(tls.NoClientCert),
|
||||
"PKCS1WithSHA1": reflect.ValueOf(tls.PKCS1WithSHA1),
|
||||
"PKCS1WithSHA256": reflect.ValueOf(tls.PKCS1WithSHA256),
|
||||
"PKCS1WithSHA384": reflect.ValueOf(tls.PKCS1WithSHA384),
|
||||
"PKCS1WithSHA512": reflect.ValueOf(tls.PKCS1WithSHA512),
|
||||
"PSSWithSHA256": reflect.ValueOf(tls.PSSWithSHA256),
|
||||
"PSSWithSHA384": reflect.ValueOf(tls.PSSWithSHA384),
|
||||
"PSSWithSHA512": reflect.ValueOf(tls.PSSWithSHA512),
|
||||
"RenegotiateFreelyAsClient": reflect.ValueOf(tls.RenegotiateFreelyAsClient),
|
||||
"RenegotiateNever": reflect.ValueOf(tls.RenegotiateNever),
|
||||
"RenegotiateOnceAsClient": reflect.ValueOf(tls.RenegotiateOnceAsClient),
|
||||
"RequestClientCert": reflect.ValueOf(tls.RequestClientCert),
|
||||
"RequireAndVerifyClientCert": reflect.ValueOf(tls.RequireAndVerifyClientCert),
|
||||
"RequireAnyClientCert": reflect.ValueOf(tls.RequireAnyClientCert),
|
||||
"Server": reflect.ValueOf(tls.Server),
|
||||
"TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA),
|
||||
"TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256),
|
||||
"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256),
|
||||
"TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA),
|
||||
|
||||
@@ -9,10 +9,10 @@ import (
|
||||
|
||||
func init() {
|
||||
Value["crypto/x509"] = map[string]reflect.Value{
|
||||
"CANotAuthorizedForExtKeyUsage": reflect.ValueOf(x509.CANotAuthorizedForExtKeyUsage),
|
||||
"CANotAuthorizedForThisName": reflect.ValueOf(x509.CANotAuthorizedForThisName),
|
||||
"CreateCertificate": reflect.ValueOf(x509.CreateCertificate),
|
||||
"CreateCertificateRequest": reflect.ValueOf(x509.CreateCertificateRequest),
|
||||
"CANotAuthorizedForExtKeyUsage": reflect.ValueOf(x509.CANotAuthorizedForExtKeyUsage),
|
||||
"CANotAuthorizedForThisName": reflect.ValueOf(x509.CANotAuthorizedForThisName),
|
||||
"CreateCertificate": reflect.ValueOf(x509.CreateCertificate),
|
||||
"CreateCertificateRequest": reflect.ValueOf(x509.CreateCertificateRequest),
|
||||
"DSA": reflect.ValueOf(x509.DSA),
|
||||
"DSAWithSHA1": reflect.ValueOf(x509.DSAWithSHA1),
|
||||
"DSAWithSHA256": reflect.ValueOf(x509.DSAWithSHA256),
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
func init() {
|
||||
Value["database/sql/driver"] = map[string]reflect.Value{
|
||||
"Bool": reflect.ValueOf(driver.Bool),
|
||||
"Bool": reflect.ValueOf(driver.Bool),
|
||||
"DefaultParameterConverter": reflect.ValueOf(driver.DefaultParameterConverter),
|
||||
"ErrBadConn": reflect.ValueOf(driver.ErrBadConn),
|
||||
"ErrRemoveArgument": reflect.ValueOf(driver.ErrRemoveArgument),
|
||||
|
||||
@@ -56,6 +56,7 @@ func init() {
|
||||
"NewField": reflect.ValueOf(types.NewField),
|
||||
"NewFunc": reflect.ValueOf(types.NewFunc),
|
||||
"NewInterface": reflect.ValueOf(types.NewInterface),
|
||||
"NewInterfaceType": reflect.ValueOf(types.NewInterfaceType),
|
||||
"NewLabel": reflect.ValueOf(types.NewLabel),
|
||||
"NewMap": reflect.ValueOf(types.NewMap),
|
||||
"NewMethodSet": reflect.ValueOf(types.NewMethodSet),
|
||||
|
||||
@@ -38,8 +38,8 @@ func init() {
|
||||
"YCbCrSubsampleRatio422": reflect.ValueOf(image.YCbCrSubsampleRatio422),
|
||||
"YCbCrSubsampleRatio440": reflect.ValueOf(image.YCbCrSubsampleRatio440),
|
||||
"YCbCrSubsampleRatio444": reflect.ValueOf(image.YCbCrSubsampleRatio444),
|
||||
"ZP": reflect.ValueOf(image.ZP),
|
||||
"ZR": reflect.ValueOf(image.ZR),
|
||||
"ZP": reflect.ValueOf(image.ZP),
|
||||
"ZR": reflect.ValueOf(image.ZR),
|
||||
}
|
||||
Type["image"] = map[string]reflect.Type{
|
||||
"Alpha": reflect.TypeOf((*image.Alpha)(nil)).Elem(),
|
||||
|
||||
182
stdlib/math.go
182
stdlib/math.go
@@ -9,99 +9,99 @@ import (
|
||||
|
||||
func init() {
|
||||
Value["math"] = map[string]reflect.Value{
|
||||
"Abs": reflect.ValueOf(math.Abs),
|
||||
"Acos": reflect.ValueOf(math.Acos),
|
||||
"Acosh": reflect.ValueOf(math.Acosh),
|
||||
"Asin": reflect.ValueOf(math.Asin),
|
||||
"Asinh": reflect.ValueOf(math.Asinh),
|
||||
"Atan": reflect.ValueOf(math.Atan),
|
||||
"Atan2": reflect.ValueOf(math.Atan2),
|
||||
"Atanh": reflect.ValueOf(math.Atanh),
|
||||
"Cbrt": reflect.ValueOf(math.Cbrt),
|
||||
"Ceil": reflect.ValueOf(math.Ceil),
|
||||
"Copysign": reflect.ValueOf(math.Copysign),
|
||||
"Cos": reflect.ValueOf(math.Cos),
|
||||
"Cosh": reflect.ValueOf(math.Cosh),
|
||||
"Dim": reflect.ValueOf(math.Dim),
|
||||
"E": reflect.ValueOf(math.E),
|
||||
"Erf": reflect.ValueOf(math.Erf),
|
||||
"Erfc": reflect.ValueOf(math.Erfc),
|
||||
"Erfcinv": reflect.ValueOf(math.Erfcinv),
|
||||
"Erfinv": reflect.ValueOf(math.Erfinv),
|
||||
"Exp": reflect.ValueOf(math.Exp),
|
||||
"Exp2": reflect.ValueOf(math.Exp2),
|
||||
"Expm1": reflect.ValueOf(math.Expm1),
|
||||
"Float32bits": reflect.ValueOf(math.Float32bits),
|
||||
"Float32frombits": reflect.ValueOf(math.Float32frombits),
|
||||
"Float64bits": reflect.ValueOf(math.Float64bits),
|
||||
"Float64frombits": reflect.ValueOf(math.Float64frombits),
|
||||
"Floor": reflect.ValueOf(math.Floor),
|
||||
"Frexp": reflect.ValueOf(math.Frexp),
|
||||
"Gamma": reflect.ValueOf(math.Gamma),
|
||||
"Hypot": reflect.ValueOf(math.Hypot),
|
||||
"Ilogb": reflect.ValueOf(math.Ilogb),
|
||||
"Inf": reflect.ValueOf(math.Inf),
|
||||
"IsInf": reflect.ValueOf(math.IsInf),
|
||||
"IsNaN": reflect.ValueOf(math.IsNaN),
|
||||
"J0": reflect.ValueOf(math.J0),
|
||||
"J1": reflect.ValueOf(math.J1),
|
||||
"Jn": reflect.ValueOf(math.Jn),
|
||||
"Ldexp": reflect.ValueOf(math.Ldexp),
|
||||
"Lgamma": reflect.ValueOf(math.Lgamma),
|
||||
"Ln10": reflect.ValueOf(math.Ln10),
|
||||
"Ln2": reflect.ValueOf(math.Ln2),
|
||||
"Log": reflect.ValueOf(math.Log),
|
||||
"Log10": reflect.ValueOf(math.Log10),
|
||||
"Log10E": reflect.ValueOf(math.Log10E),
|
||||
"Log1p": reflect.ValueOf(math.Log1p),
|
||||
"Log2": reflect.ValueOf(math.Log2),
|
||||
"Log2E": reflect.ValueOf(math.Log2E),
|
||||
"Logb": reflect.ValueOf(math.Logb),
|
||||
"Max": reflect.ValueOf(math.Max),
|
||||
"MaxFloat32": reflect.ValueOf(math.MaxFloat32),
|
||||
"MaxFloat64": reflect.ValueOf(math.MaxFloat64),
|
||||
"MaxInt16": reflect.ValueOf(math.MaxInt16),
|
||||
"MaxInt32": reflect.ValueOf(math.MaxInt32),
|
||||
"MaxInt64": reflect.ValueOf(math.MaxInt64),
|
||||
"MaxInt8": reflect.ValueOf(math.MaxInt8),
|
||||
"MaxUint16": reflect.ValueOf(math.MaxUint16),
|
||||
"MaxUint32": reflect.ValueOf(math.MaxUint32),
|
||||
"MaxUint64": reflect.ValueOf(uint(math.MaxUint64)),
|
||||
"MaxUint8": reflect.ValueOf(math.MaxUint8),
|
||||
"Min": reflect.ValueOf(math.Min),
|
||||
"MinInt16": reflect.ValueOf(math.MinInt16),
|
||||
"MinInt32": reflect.ValueOf(math.MinInt32),
|
||||
"MinInt64": reflect.ValueOf(math.MinInt64),
|
||||
"MinInt8": reflect.ValueOf(math.MinInt8),
|
||||
"Mod": reflect.ValueOf(math.Mod),
|
||||
"Modf": reflect.ValueOf(math.Modf),
|
||||
"NaN": reflect.ValueOf(math.NaN),
|
||||
"Nextafter": reflect.ValueOf(math.Nextafter),
|
||||
"Nextafter32": reflect.ValueOf(math.Nextafter32),
|
||||
"Phi": reflect.ValueOf(math.Phi),
|
||||
"Pi": reflect.ValueOf(math.Pi),
|
||||
"Pow": reflect.ValueOf(math.Pow),
|
||||
"Pow10": reflect.ValueOf(math.Pow10),
|
||||
"Remainder": reflect.ValueOf(math.Remainder),
|
||||
"Round": reflect.ValueOf(math.Round),
|
||||
"RoundToEven": reflect.ValueOf(math.RoundToEven),
|
||||
"Signbit": reflect.ValueOf(math.Signbit),
|
||||
"Sin": reflect.ValueOf(math.Sin),
|
||||
"Sincos": reflect.ValueOf(math.Sincos),
|
||||
"Sinh": reflect.ValueOf(math.Sinh),
|
||||
"Abs": reflect.ValueOf(math.Abs),
|
||||
"Acos": reflect.ValueOf(math.Acos),
|
||||
"Acosh": reflect.ValueOf(math.Acosh),
|
||||
"Asin": reflect.ValueOf(math.Asin),
|
||||
"Asinh": reflect.ValueOf(math.Asinh),
|
||||
"Atan": reflect.ValueOf(math.Atan),
|
||||
"Atan2": reflect.ValueOf(math.Atan2),
|
||||
"Atanh": reflect.ValueOf(math.Atanh),
|
||||
"Cbrt": reflect.ValueOf(math.Cbrt),
|
||||
"Ceil": reflect.ValueOf(math.Ceil),
|
||||
"Copysign": reflect.ValueOf(math.Copysign),
|
||||
"Cos": reflect.ValueOf(math.Cos),
|
||||
"Cosh": reflect.ValueOf(math.Cosh),
|
||||
"Dim": reflect.ValueOf(math.Dim),
|
||||
"E": reflect.ValueOf(math.E),
|
||||
"Erf": reflect.ValueOf(math.Erf),
|
||||
"Erfc": reflect.ValueOf(math.Erfc),
|
||||
"Erfcinv": reflect.ValueOf(math.Erfcinv),
|
||||
"Erfinv": reflect.ValueOf(math.Erfinv),
|
||||
"Exp": reflect.ValueOf(math.Exp),
|
||||
"Exp2": reflect.ValueOf(math.Exp2),
|
||||
"Expm1": reflect.ValueOf(math.Expm1),
|
||||
"Float32bits": reflect.ValueOf(math.Float32bits),
|
||||
"Float32frombits": reflect.ValueOf(math.Float32frombits),
|
||||
"Float64bits": reflect.ValueOf(math.Float64bits),
|
||||
"Float64frombits": reflect.ValueOf(math.Float64frombits),
|
||||
"Floor": reflect.ValueOf(math.Floor),
|
||||
"Frexp": reflect.ValueOf(math.Frexp),
|
||||
"Gamma": reflect.ValueOf(math.Gamma),
|
||||
"Hypot": reflect.ValueOf(math.Hypot),
|
||||
"Ilogb": reflect.ValueOf(math.Ilogb),
|
||||
"Inf": reflect.ValueOf(math.Inf),
|
||||
"IsInf": reflect.ValueOf(math.IsInf),
|
||||
"IsNaN": reflect.ValueOf(math.IsNaN),
|
||||
"J0": reflect.ValueOf(math.J0),
|
||||
"J1": reflect.ValueOf(math.J1),
|
||||
"Jn": reflect.ValueOf(math.Jn),
|
||||
"Ldexp": reflect.ValueOf(math.Ldexp),
|
||||
"Lgamma": reflect.ValueOf(math.Lgamma),
|
||||
"Ln10": reflect.ValueOf(math.Ln10),
|
||||
"Ln2": reflect.ValueOf(math.Ln2),
|
||||
"Log": reflect.ValueOf(math.Log),
|
||||
"Log10": reflect.ValueOf(math.Log10),
|
||||
"Log10E": reflect.ValueOf(math.Log10E),
|
||||
"Log1p": reflect.ValueOf(math.Log1p),
|
||||
"Log2": reflect.ValueOf(math.Log2),
|
||||
"Log2E": reflect.ValueOf(math.Log2E),
|
||||
"Logb": reflect.ValueOf(math.Logb),
|
||||
"Max": reflect.ValueOf(math.Max),
|
||||
"MaxFloat32": reflect.ValueOf(math.MaxFloat32),
|
||||
"MaxFloat64": reflect.ValueOf(math.MaxFloat64),
|
||||
"MaxInt16": reflect.ValueOf(math.MaxInt16),
|
||||
"MaxInt32": reflect.ValueOf(math.MaxInt32),
|
||||
"MaxInt64": reflect.ValueOf(math.MaxInt64),
|
||||
"MaxInt8": reflect.ValueOf(math.MaxInt8),
|
||||
"MaxUint16": reflect.ValueOf(math.MaxUint16),
|
||||
"MaxUint32": reflect.ValueOf(math.MaxUint32),
|
||||
"MaxUint64": reflect.ValueOf(uint(math.MaxUint64)),
|
||||
"MaxUint8": reflect.ValueOf(math.MaxUint8),
|
||||
"Min": reflect.ValueOf(math.Min),
|
||||
"MinInt16": reflect.ValueOf(math.MinInt16),
|
||||
"MinInt32": reflect.ValueOf(math.MinInt32),
|
||||
"MinInt64": reflect.ValueOf(math.MinInt64),
|
||||
"MinInt8": reflect.ValueOf(math.MinInt8),
|
||||
"Mod": reflect.ValueOf(math.Mod),
|
||||
"Modf": reflect.ValueOf(math.Modf),
|
||||
"NaN": reflect.ValueOf(math.NaN),
|
||||
"Nextafter": reflect.ValueOf(math.Nextafter),
|
||||
"Nextafter32": reflect.ValueOf(math.Nextafter32),
|
||||
"Phi": reflect.ValueOf(math.Phi),
|
||||
"Pi": reflect.ValueOf(math.Pi),
|
||||
"Pow": reflect.ValueOf(math.Pow),
|
||||
"Pow10": reflect.ValueOf(math.Pow10),
|
||||
"Remainder": reflect.ValueOf(math.Remainder),
|
||||
"Round": reflect.ValueOf(math.Round),
|
||||
"RoundToEven": reflect.ValueOf(math.RoundToEven),
|
||||
"Signbit": reflect.ValueOf(math.Signbit),
|
||||
"Sin": reflect.ValueOf(math.Sin),
|
||||
"Sincos": reflect.ValueOf(math.Sincos),
|
||||
"Sinh": reflect.ValueOf(math.Sinh),
|
||||
"SmallestNonzeroFloat32": reflect.ValueOf(math.SmallestNonzeroFloat32),
|
||||
"SmallestNonzeroFloat64": reflect.ValueOf(math.SmallestNonzeroFloat64),
|
||||
"Sqrt": reflect.ValueOf(math.Sqrt),
|
||||
"Sqrt2": reflect.ValueOf(math.Sqrt2),
|
||||
"SqrtE": reflect.ValueOf(math.SqrtE),
|
||||
"SqrtPhi": reflect.ValueOf(math.SqrtPhi),
|
||||
"SqrtPi": reflect.ValueOf(math.SqrtPi),
|
||||
"Tan": reflect.ValueOf(math.Tan),
|
||||
"Tanh": reflect.ValueOf(math.Tanh),
|
||||
"Trunc": reflect.ValueOf(math.Trunc),
|
||||
"Y0": reflect.ValueOf(math.Y0),
|
||||
"Y1": reflect.ValueOf(math.Y1),
|
||||
"Yn": reflect.ValueOf(math.Yn),
|
||||
"Sqrt": reflect.ValueOf(math.Sqrt),
|
||||
"Sqrt2": reflect.ValueOf(math.Sqrt2),
|
||||
"SqrtE": reflect.ValueOf(math.SqrtE),
|
||||
"SqrtPhi": reflect.ValueOf(math.SqrtPhi),
|
||||
"SqrtPi": reflect.ValueOf(math.SqrtPi),
|
||||
"Tan": reflect.ValueOf(math.Tan),
|
||||
"Tanh": reflect.ValueOf(math.Tanh),
|
||||
"Trunc": reflect.ValueOf(math.Trunc),
|
||||
"Y0": reflect.ValueOf(math.Y0),
|
||||
"Y1": reflect.ValueOf(math.Y1),
|
||||
"Yn": reflect.ValueOf(math.Yn),
|
||||
}
|
||||
Type["math"] = map[string]reflect.Type{}
|
||||
}
|
||||
|
||||
@@ -90,6 +90,7 @@ func init() {
|
||||
"IPNet": reflect.TypeOf((*net.IPNet)(nil)).Elem(),
|
||||
"Interface": reflect.TypeOf((*net.Interface)(nil)).Elem(),
|
||||
"InvalidAddrError": reflect.TypeOf((*net.InvalidAddrError)(nil)).Elem(),
|
||||
"ListenConfig": reflect.TypeOf((*net.ListenConfig)(nil)).Elem(),
|
||||
"Listener": reflect.TypeOf((*net.Listener)(nil)).Elem(),
|
||||
"MX": reflect.TypeOf((*net.MX)(nil)).Elem(),
|
||||
"NS": reflect.TypeOf((*net.NS)(nil)).Elem(),
|
||||
|
||||
@@ -72,6 +72,9 @@ func init() {
|
||||
"ReadResponse": reflect.ValueOf(http.ReadResponse),
|
||||
"Redirect": reflect.ValueOf(http.Redirect),
|
||||
"RedirectHandler": reflect.ValueOf(http.RedirectHandler),
|
||||
"SameSiteDefaultMode": reflect.ValueOf(http.SameSiteDefaultMode),
|
||||
"SameSiteLaxMode": reflect.ValueOf(http.SameSiteLaxMode),
|
||||
"SameSiteStrictMode": reflect.ValueOf(http.SameSiteStrictMode),
|
||||
"Serve": reflect.ValueOf(http.Serve),
|
||||
"ServeContent": reflect.ValueOf(http.ServeContent),
|
||||
"ServeFile": reflect.ValueOf(http.ServeFile),
|
||||
@@ -104,6 +107,7 @@ func init() {
|
||||
"StatusLocked": reflect.ValueOf(http.StatusLocked),
|
||||
"StatusLoopDetected": reflect.ValueOf(http.StatusLoopDetected),
|
||||
"StatusMethodNotAllowed": reflect.ValueOf(http.StatusMethodNotAllowed),
|
||||
"StatusMisdirectedRequest": reflect.ValueOf(http.StatusMisdirectedRequest),
|
||||
"StatusMovedPermanently": reflect.ValueOf(http.StatusMovedPermanently),
|
||||
"StatusMultiStatus": reflect.ValueOf(http.StatusMultiStatus),
|
||||
"StatusMultipleChoices": reflect.ValueOf(http.StatusMultipleChoices),
|
||||
@@ -169,6 +173,7 @@ func init() {
|
||||
"Response": reflect.TypeOf((*http.Response)(nil)).Elem(),
|
||||
"ResponseWriter": reflect.TypeOf((*http.ResponseWriter)(nil)).Elem(),
|
||||
"RoundTripper": reflect.TypeOf((*http.RoundTripper)(nil)).Elem(),
|
||||
"SameSite": reflect.TypeOf((*http.SameSite)(nil)).Elem(),
|
||||
"ServeMux": reflect.TypeOf((*http.ServeMux)(nil)).Elem(),
|
||||
"Server": reflect.TypeOf((*http.Server)(nil)).Elem(),
|
||||
"Transport": reflect.TypeOf((*http.Transport)(nil)).Elem(),
|
||||
|
||||
@@ -10,12 +10,12 @@ import (
|
||||
func init() {
|
||||
Value["net/textproto"] = map[string]reflect.Value{
|
||||
"CanonicalMIMEHeaderKey": reflect.ValueOf(textproto.CanonicalMIMEHeaderKey),
|
||||
"Dial": reflect.ValueOf(textproto.Dial),
|
||||
"NewConn": reflect.ValueOf(textproto.NewConn),
|
||||
"NewReader": reflect.ValueOf(textproto.NewReader),
|
||||
"NewWriter": reflect.ValueOf(textproto.NewWriter),
|
||||
"TrimBytes": reflect.ValueOf(textproto.TrimBytes),
|
||||
"TrimString": reflect.ValueOf(textproto.TrimString),
|
||||
"Dial": reflect.ValueOf(textproto.Dial),
|
||||
"NewConn": reflect.ValueOf(textproto.NewConn),
|
||||
"NewReader": reflect.ValueOf(textproto.NewReader),
|
||||
"NewWriter": reflect.ValueOf(textproto.NewWriter),
|
||||
"TrimBytes": reflect.ValueOf(textproto.TrimBytes),
|
||||
"TrimString": reflect.ValueOf(textproto.TrimString),
|
||||
}
|
||||
Type["net/textproto"] = map[string]reflect.Type{
|
||||
"Conn": reflect.TypeOf((*textproto.Conn)(nil)).Elem(),
|
||||
|
||||
@@ -58,6 +58,7 @@ func init() {
|
||||
"ModeDevice": reflect.ValueOf(os.ModeDevice),
|
||||
"ModeDir": reflect.ValueOf(os.ModeDir),
|
||||
"ModeExclusive": reflect.ValueOf(os.ModeExclusive),
|
||||
"ModeIrregular": reflect.ValueOf(os.ModeIrregular),
|
||||
"ModeNamedPipe": reflect.ValueOf(os.ModeNamedPipe),
|
||||
"ModePerm": reflect.ValueOf(os.ModePerm),
|
||||
"ModeSetgid": reflect.ValueOf(os.ModeSetgid),
|
||||
@@ -100,6 +101,7 @@ func init() {
|
||||
"TempDir": reflect.ValueOf(os.TempDir),
|
||||
"Truncate": reflect.ValueOf(os.Truncate),
|
||||
"Unsetenv": reflect.ValueOf(os.Unsetenv),
|
||||
"UserCacheDir": reflect.ValueOf(os.UserCacheDir),
|
||||
}
|
||||
Type["os"] = map[string]reflect.Type{
|
||||
"File": reflect.TypeOf((*os.File)(nil)).Elem(),
|
||||
|
||||
@@ -9,10 +9,11 @@ import (
|
||||
|
||||
func init() {
|
||||
Value["os/signal"] = map[string]reflect.Value{
|
||||
"Ignore": reflect.ValueOf(signal.Ignore),
|
||||
"Notify": reflect.ValueOf(signal.Notify),
|
||||
"Reset": reflect.ValueOf(signal.Reset),
|
||||
"Stop": reflect.ValueOf(signal.Stop),
|
||||
"Ignore": reflect.ValueOf(signal.Ignore),
|
||||
"Ignored": reflect.ValueOf(signal.Ignored),
|
||||
"Notify": reflect.ValueOf(signal.Notify),
|
||||
"Reset": reflect.ValueOf(signal.Reset),
|
||||
"Stop": reflect.ValueOf(signal.Stop),
|
||||
}
|
||||
Type["os/signal"] = map[string]reflect.Type{}
|
||||
}
|
||||
|
||||
@@ -9,158 +9,158 @@ import (
|
||||
|
||||
func init() {
|
||||
Value["unicode"] = map[string]reflect.Value{
|
||||
"ASCII_Hex_Digit": reflect.ValueOf(unicode.ASCII_Hex_Digit),
|
||||
"Adlam": reflect.ValueOf(unicode.Adlam),
|
||||
"Ahom": reflect.ValueOf(unicode.Ahom),
|
||||
"Anatolian_Hieroglyphs": reflect.ValueOf(unicode.Anatolian_Hieroglyphs),
|
||||
"Arabic": reflect.ValueOf(unicode.Arabic),
|
||||
"Armenian": reflect.ValueOf(unicode.Armenian),
|
||||
"Avestan": reflect.ValueOf(unicode.Avestan),
|
||||
"AzeriCase": reflect.ValueOf(unicode.AzeriCase),
|
||||
"Balinese": reflect.ValueOf(unicode.Balinese),
|
||||
"Bamum": reflect.ValueOf(unicode.Bamum),
|
||||
"Bassa_Vah": reflect.ValueOf(unicode.Bassa_Vah),
|
||||
"Batak": reflect.ValueOf(unicode.Batak),
|
||||
"Bengali": reflect.ValueOf(unicode.Bengali),
|
||||
"Bhaiksuki": reflect.ValueOf(unicode.Bhaiksuki),
|
||||
"Bidi_Control": reflect.ValueOf(unicode.Bidi_Control),
|
||||
"Bopomofo": reflect.ValueOf(unicode.Bopomofo),
|
||||
"Brahmi": reflect.ValueOf(unicode.Brahmi),
|
||||
"Braille": reflect.ValueOf(unicode.Braille),
|
||||
"Buginese": reflect.ValueOf(unicode.Buginese),
|
||||
"Buhid": reflect.ValueOf(unicode.Buhid),
|
||||
"C": reflect.ValueOf(unicode.C),
|
||||
"Canadian_Aboriginal": reflect.ValueOf(unicode.Canadian_Aboriginal),
|
||||
"Carian": reflect.ValueOf(unicode.Carian),
|
||||
"CaseRanges": reflect.ValueOf(unicode.CaseRanges),
|
||||
"Categories": reflect.ValueOf(unicode.Categories),
|
||||
"Caucasian_Albanian": reflect.ValueOf(unicode.Caucasian_Albanian),
|
||||
"Cc": reflect.ValueOf(unicode.Cc),
|
||||
"Cf": reflect.ValueOf(unicode.Cf),
|
||||
"Chakma": reflect.ValueOf(unicode.Chakma),
|
||||
"Cham": reflect.ValueOf(unicode.Cham),
|
||||
"Cherokee": reflect.ValueOf(unicode.Cherokee),
|
||||
"Co": reflect.ValueOf(unicode.Co),
|
||||
"Common": reflect.ValueOf(unicode.Common),
|
||||
"Coptic": reflect.ValueOf(unicode.Coptic),
|
||||
"Cs": reflect.ValueOf(unicode.Cs),
|
||||
"Cuneiform": reflect.ValueOf(unicode.Cuneiform),
|
||||
"Cypriot": reflect.ValueOf(unicode.Cypriot),
|
||||
"Cyrillic": reflect.ValueOf(unicode.Cyrillic),
|
||||
"Dash": reflect.ValueOf(unicode.Dash),
|
||||
"Deprecated": reflect.ValueOf(unicode.Deprecated),
|
||||
"Deseret": reflect.ValueOf(unicode.Deseret),
|
||||
"Devanagari": reflect.ValueOf(unicode.Devanagari),
|
||||
"Diacritic": reflect.ValueOf(unicode.Diacritic),
|
||||
"Digit": reflect.ValueOf(unicode.Digit),
|
||||
"Duployan": reflect.ValueOf(unicode.Duployan),
|
||||
"Egyptian_Hieroglyphs": reflect.ValueOf(unicode.Egyptian_Hieroglyphs),
|
||||
"Elbasan": reflect.ValueOf(unicode.Elbasan),
|
||||
"Ethiopic": reflect.ValueOf(unicode.Ethiopic),
|
||||
"Extender": reflect.ValueOf(unicode.Extender),
|
||||
"FoldCategory": reflect.ValueOf(unicode.FoldCategory),
|
||||
"FoldScript": reflect.ValueOf(unicode.FoldScript),
|
||||
"Georgian": reflect.ValueOf(unicode.Georgian),
|
||||
"Glagolitic": reflect.ValueOf(unicode.Glagolitic),
|
||||
"Gothic": reflect.ValueOf(unicode.Gothic),
|
||||
"Grantha": reflect.ValueOf(unicode.Grantha),
|
||||
"GraphicRanges": reflect.ValueOf(unicode.GraphicRanges),
|
||||
"Greek": reflect.ValueOf(unicode.Greek),
|
||||
"Gujarati": reflect.ValueOf(unicode.Gujarati),
|
||||
"Gurmukhi": reflect.ValueOf(unicode.Gurmukhi),
|
||||
"Han": reflect.ValueOf(unicode.Han),
|
||||
"Hangul": reflect.ValueOf(unicode.Hangul),
|
||||
"Hanunoo": reflect.ValueOf(unicode.Hanunoo),
|
||||
"Hatran": reflect.ValueOf(unicode.Hatran),
|
||||
"Hebrew": reflect.ValueOf(unicode.Hebrew),
|
||||
"Hex_Digit": reflect.ValueOf(unicode.Hex_Digit),
|
||||
"Hiragana": reflect.ValueOf(unicode.Hiragana),
|
||||
"Hyphen": reflect.ValueOf(unicode.Hyphen),
|
||||
"IDS_Binary_Operator": reflect.ValueOf(unicode.IDS_Binary_Operator),
|
||||
"IDS_Trinary_Operator": reflect.ValueOf(unicode.IDS_Trinary_Operator),
|
||||
"Ideographic": reflect.ValueOf(unicode.Ideographic),
|
||||
"Imperial_Aramaic": reflect.ValueOf(unicode.Imperial_Aramaic),
|
||||
"In": reflect.ValueOf(unicode.In),
|
||||
"Inherited": reflect.ValueOf(unicode.Inherited),
|
||||
"Inscriptional_Pahlavi": reflect.ValueOf(unicode.Inscriptional_Pahlavi),
|
||||
"Inscriptional_Parthian": reflect.ValueOf(unicode.Inscriptional_Parthian),
|
||||
"Is": reflect.ValueOf(unicode.Is),
|
||||
"IsControl": reflect.ValueOf(unicode.IsControl),
|
||||
"IsDigit": reflect.ValueOf(unicode.IsDigit),
|
||||
"IsGraphic": reflect.ValueOf(unicode.IsGraphic),
|
||||
"IsLetter": reflect.ValueOf(unicode.IsLetter),
|
||||
"IsLower": reflect.ValueOf(unicode.IsLower),
|
||||
"IsMark": reflect.ValueOf(unicode.IsMark),
|
||||
"IsNumber": reflect.ValueOf(unicode.IsNumber),
|
||||
"IsOneOf": reflect.ValueOf(unicode.IsOneOf),
|
||||
"IsPrint": reflect.ValueOf(unicode.IsPrint),
|
||||
"IsPunct": reflect.ValueOf(unicode.IsPunct),
|
||||
"IsSpace": reflect.ValueOf(unicode.IsSpace),
|
||||
"IsSymbol": reflect.ValueOf(unicode.IsSymbol),
|
||||
"IsTitle": reflect.ValueOf(unicode.IsTitle),
|
||||
"IsUpper": reflect.ValueOf(unicode.IsUpper),
|
||||
"Javanese": reflect.ValueOf(unicode.Javanese),
|
||||
"Join_Control": reflect.ValueOf(unicode.Join_Control),
|
||||
"Kaithi": reflect.ValueOf(unicode.Kaithi),
|
||||
"Kannada": reflect.ValueOf(unicode.Kannada),
|
||||
"Katakana": reflect.ValueOf(unicode.Katakana),
|
||||
"Kayah_Li": reflect.ValueOf(unicode.Kayah_Li),
|
||||
"Kharoshthi": reflect.ValueOf(unicode.Kharoshthi),
|
||||
"Khmer": reflect.ValueOf(unicode.Khmer),
|
||||
"Khojki": reflect.ValueOf(unicode.Khojki),
|
||||
"Khudawadi": reflect.ValueOf(unicode.Khudawadi),
|
||||
"L": reflect.ValueOf(unicode.L),
|
||||
"Lao": reflect.ValueOf(unicode.Lao),
|
||||
"Latin": reflect.ValueOf(unicode.Latin),
|
||||
"Lepcha": reflect.ValueOf(unicode.Lepcha),
|
||||
"Letter": reflect.ValueOf(unicode.Letter),
|
||||
"Limbu": reflect.ValueOf(unicode.Limbu),
|
||||
"Linear_A": reflect.ValueOf(unicode.Linear_A),
|
||||
"Linear_B": reflect.ValueOf(unicode.Linear_B),
|
||||
"Lisu": reflect.ValueOf(unicode.Lisu),
|
||||
"Ll": reflect.ValueOf(unicode.Ll),
|
||||
"Lm": reflect.ValueOf(unicode.Lm),
|
||||
"Lo": reflect.ValueOf(unicode.Lo),
|
||||
"Logical_Order_Exception": reflect.ValueOf(unicode.Logical_Order_Exception),
|
||||
"Lower": reflect.ValueOf(unicode.Lower),
|
||||
"LowerCase": reflect.ValueOf(unicode.LowerCase),
|
||||
"Lt": reflect.ValueOf(unicode.Lt),
|
||||
"Lu": reflect.ValueOf(unicode.Lu),
|
||||
"Lycian": reflect.ValueOf(unicode.Lycian),
|
||||
"Lydian": reflect.ValueOf(unicode.Lydian),
|
||||
"M": reflect.ValueOf(unicode.M),
|
||||
"Mahajani": reflect.ValueOf(unicode.Mahajani),
|
||||
"Malayalam": reflect.ValueOf(unicode.Malayalam),
|
||||
"Mandaic": reflect.ValueOf(unicode.Mandaic),
|
||||
"Manichaean": reflect.ValueOf(unicode.Manichaean),
|
||||
"Marchen": reflect.ValueOf(unicode.Marchen),
|
||||
"Mark": reflect.ValueOf(unicode.Mark),
|
||||
"Masaram_Gondi": reflect.ValueOf(unicode.Masaram_Gondi),
|
||||
"MaxASCII": reflect.ValueOf(unicode.MaxASCII),
|
||||
"MaxCase": reflect.ValueOf(unicode.MaxCase),
|
||||
"MaxLatin1": reflect.ValueOf(unicode.MaxLatin1),
|
||||
"MaxRune": reflect.ValueOf(unicode.MaxRune),
|
||||
"Mc": reflect.ValueOf(unicode.Mc),
|
||||
"Me": reflect.ValueOf(unicode.Me),
|
||||
"Meetei_Mayek": reflect.ValueOf(unicode.Meetei_Mayek),
|
||||
"Mende_Kikakui": reflect.ValueOf(unicode.Mende_Kikakui),
|
||||
"Meroitic_Cursive": reflect.ValueOf(unicode.Meroitic_Cursive),
|
||||
"Meroitic_Hieroglyphs": reflect.ValueOf(unicode.Meroitic_Hieroglyphs),
|
||||
"Miao": reflect.ValueOf(unicode.Miao),
|
||||
"Mn": reflect.ValueOf(unicode.Mn),
|
||||
"Modi": reflect.ValueOf(unicode.Modi),
|
||||
"Mongolian": reflect.ValueOf(unicode.Mongolian),
|
||||
"Mro": reflect.ValueOf(unicode.Mro),
|
||||
"Multani": reflect.ValueOf(unicode.Multani),
|
||||
"Myanmar": reflect.ValueOf(unicode.Myanmar),
|
||||
"N": reflect.ValueOf(unicode.N),
|
||||
"Nabataean": reflect.ValueOf(unicode.Nabataean),
|
||||
"Nd": reflect.ValueOf(unicode.Nd),
|
||||
"New_Tai_Lue": reflect.ValueOf(unicode.New_Tai_Lue),
|
||||
"Newa": reflect.ValueOf(unicode.Newa),
|
||||
"Nko": reflect.ValueOf(unicode.Nko),
|
||||
"Nl": reflect.ValueOf(unicode.Nl),
|
||||
"No": reflect.ValueOf(unicode.No),
|
||||
"ASCII_Hex_Digit": reflect.ValueOf(unicode.ASCII_Hex_Digit),
|
||||
"Adlam": reflect.ValueOf(unicode.Adlam),
|
||||
"Ahom": reflect.ValueOf(unicode.Ahom),
|
||||
"Anatolian_Hieroglyphs": reflect.ValueOf(unicode.Anatolian_Hieroglyphs),
|
||||
"Arabic": reflect.ValueOf(unicode.Arabic),
|
||||
"Armenian": reflect.ValueOf(unicode.Armenian),
|
||||
"Avestan": reflect.ValueOf(unicode.Avestan),
|
||||
"AzeriCase": reflect.ValueOf(unicode.AzeriCase),
|
||||
"Balinese": reflect.ValueOf(unicode.Balinese),
|
||||
"Bamum": reflect.ValueOf(unicode.Bamum),
|
||||
"Bassa_Vah": reflect.ValueOf(unicode.Bassa_Vah),
|
||||
"Batak": reflect.ValueOf(unicode.Batak),
|
||||
"Bengali": reflect.ValueOf(unicode.Bengali),
|
||||
"Bhaiksuki": reflect.ValueOf(unicode.Bhaiksuki),
|
||||
"Bidi_Control": reflect.ValueOf(unicode.Bidi_Control),
|
||||
"Bopomofo": reflect.ValueOf(unicode.Bopomofo),
|
||||
"Brahmi": reflect.ValueOf(unicode.Brahmi),
|
||||
"Braille": reflect.ValueOf(unicode.Braille),
|
||||
"Buginese": reflect.ValueOf(unicode.Buginese),
|
||||
"Buhid": reflect.ValueOf(unicode.Buhid),
|
||||
"C": reflect.ValueOf(unicode.C),
|
||||
"Canadian_Aboriginal": reflect.ValueOf(unicode.Canadian_Aboriginal),
|
||||
"Carian": reflect.ValueOf(unicode.Carian),
|
||||
"CaseRanges": reflect.ValueOf(unicode.CaseRanges),
|
||||
"Categories": reflect.ValueOf(unicode.Categories),
|
||||
"Caucasian_Albanian": reflect.ValueOf(unicode.Caucasian_Albanian),
|
||||
"Cc": reflect.ValueOf(unicode.Cc),
|
||||
"Cf": reflect.ValueOf(unicode.Cf),
|
||||
"Chakma": reflect.ValueOf(unicode.Chakma),
|
||||
"Cham": reflect.ValueOf(unicode.Cham),
|
||||
"Cherokee": reflect.ValueOf(unicode.Cherokee),
|
||||
"Co": reflect.ValueOf(unicode.Co),
|
||||
"Common": reflect.ValueOf(unicode.Common),
|
||||
"Coptic": reflect.ValueOf(unicode.Coptic),
|
||||
"Cs": reflect.ValueOf(unicode.Cs),
|
||||
"Cuneiform": reflect.ValueOf(unicode.Cuneiform),
|
||||
"Cypriot": reflect.ValueOf(unicode.Cypriot),
|
||||
"Cyrillic": reflect.ValueOf(unicode.Cyrillic),
|
||||
"Dash": reflect.ValueOf(unicode.Dash),
|
||||
"Deprecated": reflect.ValueOf(unicode.Deprecated),
|
||||
"Deseret": reflect.ValueOf(unicode.Deseret),
|
||||
"Devanagari": reflect.ValueOf(unicode.Devanagari),
|
||||
"Diacritic": reflect.ValueOf(unicode.Diacritic),
|
||||
"Digit": reflect.ValueOf(unicode.Digit),
|
||||
"Duployan": reflect.ValueOf(unicode.Duployan),
|
||||
"Egyptian_Hieroglyphs": reflect.ValueOf(unicode.Egyptian_Hieroglyphs),
|
||||
"Elbasan": reflect.ValueOf(unicode.Elbasan),
|
||||
"Ethiopic": reflect.ValueOf(unicode.Ethiopic),
|
||||
"Extender": reflect.ValueOf(unicode.Extender),
|
||||
"FoldCategory": reflect.ValueOf(unicode.FoldCategory),
|
||||
"FoldScript": reflect.ValueOf(unicode.FoldScript),
|
||||
"Georgian": reflect.ValueOf(unicode.Georgian),
|
||||
"Glagolitic": reflect.ValueOf(unicode.Glagolitic),
|
||||
"Gothic": reflect.ValueOf(unicode.Gothic),
|
||||
"Grantha": reflect.ValueOf(unicode.Grantha),
|
||||
"GraphicRanges": reflect.ValueOf(unicode.GraphicRanges),
|
||||
"Greek": reflect.ValueOf(unicode.Greek),
|
||||
"Gujarati": reflect.ValueOf(unicode.Gujarati),
|
||||
"Gurmukhi": reflect.ValueOf(unicode.Gurmukhi),
|
||||
"Han": reflect.ValueOf(unicode.Han),
|
||||
"Hangul": reflect.ValueOf(unicode.Hangul),
|
||||
"Hanunoo": reflect.ValueOf(unicode.Hanunoo),
|
||||
"Hatran": reflect.ValueOf(unicode.Hatran),
|
||||
"Hebrew": reflect.ValueOf(unicode.Hebrew),
|
||||
"Hex_Digit": reflect.ValueOf(unicode.Hex_Digit),
|
||||
"Hiragana": reflect.ValueOf(unicode.Hiragana),
|
||||
"Hyphen": reflect.ValueOf(unicode.Hyphen),
|
||||
"IDS_Binary_Operator": reflect.ValueOf(unicode.IDS_Binary_Operator),
|
||||
"IDS_Trinary_Operator": reflect.ValueOf(unicode.IDS_Trinary_Operator),
|
||||
"Ideographic": reflect.ValueOf(unicode.Ideographic),
|
||||
"Imperial_Aramaic": reflect.ValueOf(unicode.Imperial_Aramaic),
|
||||
"In": reflect.ValueOf(unicode.In),
|
||||
"Inherited": reflect.ValueOf(unicode.Inherited),
|
||||
"Inscriptional_Pahlavi": reflect.ValueOf(unicode.Inscriptional_Pahlavi),
|
||||
"Inscriptional_Parthian": reflect.ValueOf(unicode.Inscriptional_Parthian),
|
||||
"Is": reflect.ValueOf(unicode.Is),
|
||||
"IsControl": reflect.ValueOf(unicode.IsControl),
|
||||
"IsDigit": reflect.ValueOf(unicode.IsDigit),
|
||||
"IsGraphic": reflect.ValueOf(unicode.IsGraphic),
|
||||
"IsLetter": reflect.ValueOf(unicode.IsLetter),
|
||||
"IsLower": reflect.ValueOf(unicode.IsLower),
|
||||
"IsMark": reflect.ValueOf(unicode.IsMark),
|
||||
"IsNumber": reflect.ValueOf(unicode.IsNumber),
|
||||
"IsOneOf": reflect.ValueOf(unicode.IsOneOf),
|
||||
"IsPrint": reflect.ValueOf(unicode.IsPrint),
|
||||
"IsPunct": reflect.ValueOf(unicode.IsPunct),
|
||||
"IsSpace": reflect.ValueOf(unicode.IsSpace),
|
||||
"IsSymbol": reflect.ValueOf(unicode.IsSymbol),
|
||||
"IsTitle": reflect.ValueOf(unicode.IsTitle),
|
||||
"IsUpper": reflect.ValueOf(unicode.IsUpper),
|
||||
"Javanese": reflect.ValueOf(unicode.Javanese),
|
||||
"Join_Control": reflect.ValueOf(unicode.Join_Control),
|
||||
"Kaithi": reflect.ValueOf(unicode.Kaithi),
|
||||
"Kannada": reflect.ValueOf(unicode.Kannada),
|
||||
"Katakana": reflect.ValueOf(unicode.Katakana),
|
||||
"Kayah_Li": reflect.ValueOf(unicode.Kayah_Li),
|
||||
"Kharoshthi": reflect.ValueOf(unicode.Kharoshthi),
|
||||
"Khmer": reflect.ValueOf(unicode.Khmer),
|
||||
"Khojki": reflect.ValueOf(unicode.Khojki),
|
||||
"Khudawadi": reflect.ValueOf(unicode.Khudawadi),
|
||||
"L": reflect.ValueOf(unicode.L),
|
||||
"Lao": reflect.ValueOf(unicode.Lao),
|
||||
"Latin": reflect.ValueOf(unicode.Latin),
|
||||
"Lepcha": reflect.ValueOf(unicode.Lepcha),
|
||||
"Letter": reflect.ValueOf(unicode.Letter),
|
||||
"Limbu": reflect.ValueOf(unicode.Limbu),
|
||||
"Linear_A": reflect.ValueOf(unicode.Linear_A),
|
||||
"Linear_B": reflect.ValueOf(unicode.Linear_B),
|
||||
"Lisu": reflect.ValueOf(unicode.Lisu),
|
||||
"Ll": reflect.ValueOf(unicode.Ll),
|
||||
"Lm": reflect.ValueOf(unicode.Lm),
|
||||
"Lo": reflect.ValueOf(unicode.Lo),
|
||||
"Logical_Order_Exception": reflect.ValueOf(unicode.Logical_Order_Exception),
|
||||
"Lower": reflect.ValueOf(unicode.Lower),
|
||||
"LowerCase": reflect.ValueOf(unicode.LowerCase),
|
||||
"Lt": reflect.ValueOf(unicode.Lt),
|
||||
"Lu": reflect.ValueOf(unicode.Lu),
|
||||
"Lycian": reflect.ValueOf(unicode.Lycian),
|
||||
"Lydian": reflect.ValueOf(unicode.Lydian),
|
||||
"M": reflect.ValueOf(unicode.M),
|
||||
"Mahajani": reflect.ValueOf(unicode.Mahajani),
|
||||
"Malayalam": reflect.ValueOf(unicode.Malayalam),
|
||||
"Mandaic": reflect.ValueOf(unicode.Mandaic),
|
||||
"Manichaean": reflect.ValueOf(unicode.Manichaean),
|
||||
"Marchen": reflect.ValueOf(unicode.Marchen),
|
||||
"Mark": reflect.ValueOf(unicode.Mark),
|
||||
"Masaram_Gondi": reflect.ValueOf(unicode.Masaram_Gondi),
|
||||
"MaxASCII": reflect.ValueOf(unicode.MaxASCII),
|
||||
"MaxCase": reflect.ValueOf(unicode.MaxCase),
|
||||
"MaxLatin1": reflect.ValueOf(unicode.MaxLatin1),
|
||||
"MaxRune": reflect.ValueOf(unicode.MaxRune),
|
||||
"Mc": reflect.ValueOf(unicode.Mc),
|
||||
"Me": reflect.ValueOf(unicode.Me),
|
||||
"Meetei_Mayek": reflect.ValueOf(unicode.Meetei_Mayek),
|
||||
"Mende_Kikakui": reflect.ValueOf(unicode.Mende_Kikakui),
|
||||
"Meroitic_Cursive": reflect.ValueOf(unicode.Meroitic_Cursive),
|
||||
"Meroitic_Hieroglyphs": reflect.ValueOf(unicode.Meroitic_Hieroglyphs),
|
||||
"Miao": reflect.ValueOf(unicode.Miao),
|
||||
"Mn": reflect.ValueOf(unicode.Mn),
|
||||
"Modi": reflect.ValueOf(unicode.Modi),
|
||||
"Mongolian": reflect.ValueOf(unicode.Mongolian),
|
||||
"Mro": reflect.ValueOf(unicode.Mro),
|
||||
"Multani": reflect.ValueOf(unicode.Multani),
|
||||
"Myanmar": reflect.ValueOf(unicode.Myanmar),
|
||||
"N": reflect.ValueOf(unicode.N),
|
||||
"Nabataean": reflect.ValueOf(unicode.Nabataean),
|
||||
"Nd": reflect.ValueOf(unicode.Nd),
|
||||
"New_Tai_Lue": reflect.ValueOf(unicode.New_Tai_Lue),
|
||||
"Newa": reflect.ValueOf(unicode.Newa),
|
||||
"Nko": reflect.ValueOf(unicode.Nko),
|
||||
"Nl": reflect.ValueOf(unicode.Nl),
|
||||
"No": reflect.ValueOf(unicode.No),
|
||||
"Noncharacter_Code_Point": reflect.ValueOf(unicode.Noncharacter_Code_Point),
|
||||
"Number": reflect.ValueOf(unicode.Number),
|
||||
"Nushu": reflect.ValueOf(unicode.Nushu),
|
||||
@@ -199,80 +199,80 @@ func init() {
|
||||
"Phoenician": reflect.ValueOf(unicode.Phoenician),
|
||||
"Pi": reflect.ValueOf(unicode.Pi),
|
||||
"Po": reflect.ValueOf(unicode.Po),
|
||||
"Prepended_Concatenation_Mark": reflect.ValueOf(unicode.Prepended_Concatenation_Mark),
|
||||
"PrintRanges": reflect.ValueOf(unicode.PrintRanges),
|
||||
"Properties": reflect.ValueOf(unicode.Properties),
|
||||
"Ps": reflect.ValueOf(unicode.Ps),
|
||||
"Psalter_Pahlavi": reflect.ValueOf(unicode.Psalter_Pahlavi),
|
||||
"Punct": reflect.ValueOf(unicode.Punct),
|
||||
"Quotation_Mark": reflect.ValueOf(unicode.Quotation_Mark),
|
||||
"Radical": reflect.ValueOf(unicode.Radical),
|
||||
"Regional_Indicator": reflect.ValueOf(unicode.Regional_Indicator),
|
||||
"Rejang": reflect.ValueOf(unicode.Rejang),
|
||||
"ReplacementChar": reflect.ValueOf(unicode.ReplacementChar),
|
||||
"Runic": reflect.ValueOf(unicode.Runic),
|
||||
"S": reflect.ValueOf(unicode.S),
|
||||
"STerm": reflect.ValueOf(unicode.STerm),
|
||||
"Samaritan": reflect.ValueOf(unicode.Samaritan),
|
||||
"Saurashtra": reflect.ValueOf(unicode.Saurashtra),
|
||||
"Sc": reflect.ValueOf(unicode.Sc),
|
||||
"Scripts": reflect.ValueOf(unicode.Scripts),
|
||||
"Sentence_Terminal": reflect.ValueOf(unicode.Sentence_Terminal),
|
||||
"Sharada": reflect.ValueOf(unicode.Sharada),
|
||||
"Shavian": reflect.ValueOf(unicode.Shavian),
|
||||
"Siddham": reflect.ValueOf(unicode.Siddham),
|
||||
"SignWriting": reflect.ValueOf(unicode.SignWriting),
|
||||
"SimpleFold": reflect.ValueOf(unicode.SimpleFold),
|
||||
"Sinhala": reflect.ValueOf(unicode.Sinhala),
|
||||
"Sk": reflect.ValueOf(unicode.Sk),
|
||||
"Sm": reflect.ValueOf(unicode.Sm),
|
||||
"So": reflect.ValueOf(unicode.So),
|
||||
"Soft_Dotted": reflect.ValueOf(unicode.Soft_Dotted),
|
||||
"Sora_Sompeng": reflect.ValueOf(unicode.Sora_Sompeng),
|
||||
"Soyombo": reflect.ValueOf(unicode.Soyombo),
|
||||
"Space": reflect.ValueOf(unicode.Space),
|
||||
"Sundanese": reflect.ValueOf(unicode.Sundanese),
|
||||
"Syloti_Nagri": reflect.ValueOf(unicode.Syloti_Nagri),
|
||||
"Symbol": reflect.ValueOf(unicode.Symbol),
|
||||
"Syriac": reflect.ValueOf(unicode.Syriac),
|
||||
"Tagalog": reflect.ValueOf(unicode.Tagalog),
|
||||
"Tagbanwa": reflect.ValueOf(unicode.Tagbanwa),
|
||||
"Tai_Le": reflect.ValueOf(unicode.Tai_Le),
|
||||
"Tai_Tham": reflect.ValueOf(unicode.Tai_Tham),
|
||||
"Tai_Viet": reflect.ValueOf(unicode.Tai_Viet),
|
||||
"Takri": reflect.ValueOf(unicode.Takri),
|
||||
"Tamil": reflect.ValueOf(unicode.Tamil),
|
||||
"Tangut": reflect.ValueOf(unicode.Tangut),
|
||||
"Telugu": reflect.ValueOf(unicode.Telugu),
|
||||
"Terminal_Punctuation": reflect.ValueOf(unicode.Terminal_Punctuation),
|
||||
"Thaana": reflect.ValueOf(unicode.Thaana),
|
||||
"Thai": reflect.ValueOf(unicode.Thai),
|
||||
"Tibetan": reflect.ValueOf(unicode.Tibetan),
|
||||
"Tifinagh": reflect.ValueOf(unicode.Tifinagh),
|
||||
"Tirhuta": reflect.ValueOf(unicode.Tirhuta),
|
||||
"Title": reflect.ValueOf(unicode.Title),
|
||||
"TitleCase": reflect.ValueOf(unicode.TitleCase),
|
||||
"To": reflect.ValueOf(unicode.To),
|
||||
"ToLower": reflect.ValueOf(unicode.ToLower),
|
||||
"ToTitle": reflect.ValueOf(unicode.ToTitle),
|
||||
"ToUpper": reflect.ValueOf(unicode.ToUpper),
|
||||
"TurkishCase": reflect.ValueOf(unicode.TurkishCase),
|
||||
"Ugaritic": reflect.ValueOf(unicode.Ugaritic),
|
||||
"Unified_Ideograph": reflect.ValueOf(unicode.Unified_Ideograph),
|
||||
"Upper": reflect.ValueOf(unicode.Upper),
|
||||
"UpperCase": reflect.ValueOf(unicode.UpperCase),
|
||||
"UpperLower": reflect.ValueOf(unicode.UpperLower),
|
||||
"Vai": reflect.ValueOf(unicode.Vai),
|
||||
"Variation_Selector": reflect.ValueOf(unicode.Variation_Selector),
|
||||
"Version": reflect.ValueOf(unicode.Version),
|
||||
"Warang_Citi": reflect.ValueOf(unicode.Warang_Citi),
|
||||
"White_Space": reflect.ValueOf(unicode.White_Space),
|
||||
"Yi": reflect.ValueOf(unicode.Yi),
|
||||
"Z": reflect.ValueOf(unicode.Z),
|
||||
"Zanabazar_Square": reflect.ValueOf(unicode.Zanabazar_Square),
|
||||
"Zl": reflect.ValueOf(unicode.Zl),
|
||||
"Zp": reflect.ValueOf(unicode.Zp),
|
||||
"Zs": reflect.ValueOf(unicode.Zs),
|
||||
"Prepended_Concatenation_Mark": reflect.ValueOf(unicode.Prepended_Concatenation_Mark),
|
||||
"PrintRanges": reflect.ValueOf(unicode.PrintRanges),
|
||||
"Properties": reflect.ValueOf(unicode.Properties),
|
||||
"Ps": reflect.ValueOf(unicode.Ps),
|
||||
"Psalter_Pahlavi": reflect.ValueOf(unicode.Psalter_Pahlavi),
|
||||
"Punct": reflect.ValueOf(unicode.Punct),
|
||||
"Quotation_Mark": reflect.ValueOf(unicode.Quotation_Mark),
|
||||
"Radical": reflect.ValueOf(unicode.Radical),
|
||||
"Regional_Indicator": reflect.ValueOf(unicode.Regional_Indicator),
|
||||
"Rejang": reflect.ValueOf(unicode.Rejang),
|
||||
"ReplacementChar": reflect.ValueOf(unicode.ReplacementChar),
|
||||
"Runic": reflect.ValueOf(unicode.Runic),
|
||||
"S": reflect.ValueOf(unicode.S),
|
||||
"STerm": reflect.ValueOf(unicode.STerm),
|
||||
"Samaritan": reflect.ValueOf(unicode.Samaritan),
|
||||
"Saurashtra": reflect.ValueOf(unicode.Saurashtra),
|
||||
"Sc": reflect.ValueOf(unicode.Sc),
|
||||
"Scripts": reflect.ValueOf(unicode.Scripts),
|
||||
"Sentence_Terminal": reflect.ValueOf(unicode.Sentence_Terminal),
|
||||
"Sharada": reflect.ValueOf(unicode.Sharada),
|
||||
"Shavian": reflect.ValueOf(unicode.Shavian),
|
||||
"Siddham": reflect.ValueOf(unicode.Siddham),
|
||||
"SignWriting": reflect.ValueOf(unicode.SignWriting),
|
||||
"SimpleFold": reflect.ValueOf(unicode.SimpleFold),
|
||||
"Sinhala": reflect.ValueOf(unicode.Sinhala),
|
||||
"Sk": reflect.ValueOf(unicode.Sk),
|
||||
"Sm": reflect.ValueOf(unicode.Sm),
|
||||
"So": reflect.ValueOf(unicode.So),
|
||||
"Soft_Dotted": reflect.ValueOf(unicode.Soft_Dotted),
|
||||
"Sora_Sompeng": reflect.ValueOf(unicode.Sora_Sompeng),
|
||||
"Soyombo": reflect.ValueOf(unicode.Soyombo),
|
||||
"Space": reflect.ValueOf(unicode.Space),
|
||||
"Sundanese": reflect.ValueOf(unicode.Sundanese),
|
||||
"Syloti_Nagri": reflect.ValueOf(unicode.Syloti_Nagri),
|
||||
"Symbol": reflect.ValueOf(unicode.Symbol),
|
||||
"Syriac": reflect.ValueOf(unicode.Syriac),
|
||||
"Tagalog": reflect.ValueOf(unicode.Tagalog),
|
||||
"Tagbanwa": reflect.ValueOf(unicode.Tagbanwa),
|
||||
"Tai_Le": reflect.ValueOf(unicode.Tai_Le),
|
||||
"Tai_Tham": reflect.ValueOf(unicode.Tai_Tham),
|
||||
"Tai_Viet": reflect.ValueOf(unicode.Tai_Viet),
|
||||
"Takri": reflect.ValueOf(unicode.Takri),
|
||||
"Tamil": reflect.ValueOf(unicode.Tamil),
|
||||
"Tangut": reflect.ValueOf(unicode.Tangut),
|
||||
"Telugu": reflect.ValueOf(unicode.Telugu),
|
||||
"Terminal_Punctuation": reflect.ValueOf(unicode.Terminal_Punctuation),
|
||||
"Thaana": reflect.ValueOf(unicode.Thaana),
|
||||
"Thai": reflect.ValueOf(unicode.Thai),
|
||||
"Tibetan": reflect.ValueOf(unicode.Tibetan),
|
||||
"Tifinagh": reflect.ValueOf(unicode.Tifinagh),
|
||||
"Tirhuta": reflect.ValueOf(unicode.Tirhuta),
|
||||
"Title": reflect.ValueOf(unicode.Title),
|
||||
"TitleCase": reflect.ValueOf(unicode.TitleCase),
|
||||
"To": reflect.ValueOf(unicode.To),
|
||||
"ToLower": reflect.ValueOf(unicode.ToLower),
|
||||
"ToTitle": reflect.ValueOf(unicode.ToTitle),
|
||||
"ToUpper": reflect.ValueOf(unicode.ToUpper),
|
||||
"TurkishCase": reflect.ValueOf(unicode.TurkishCase),
|
||||
"Ugaritic": reflect.ValueOf(unicode.Ugaritic),
|
||||
"Unified_Ideograph": reflect.ValueOf(unicode.Unified_Ideograph),
|
||||
"Upper": reflect.ValueOf(unicode.Upper),
|
||||
"UpperCase": reflect.ValueOf(unicode.UpperCase),
|
||||
"UpperLower": reflect.ValueOf(unicode.UpperLower),
|
||||
"Vai": reflect.ValueOf(unicode.Vai),
|
||||
"Variation_Selector": reflect.ValueOf(unicode.Variation_Selector),
|
||||
"Version": reflect.ValueOf(unicode.Version),
|
||||
"Warang_Citi": reflect.ValueOf(unicode.Warang_Citi),
|
||||
"White_Space": reflect.ValueOf(unicode.White_Space),
|
||||
"Yi": reflect.ValueOf(unicode.Yi),
|
||||
"Z": reflect.ValueOf(unicode.Z),
|
||||
"Zanabazar_Square": reflect.ValueOf(unicode.Zanabazar_Square),
|
||||
"Zl": reflect.ValueOf(unicode.Zl),
|
||||
"Zp": reflect.ValueOf(unicode.Zp),
|
||||
"Zs": reflect.ValueOf(unicode.Zs),
|
||||
}
|
||||
Type["unicode"] = map[string]reflect.Type{
|
||||
"CaseRange": reflect.TypeOf((*unicode.CaseRange)(nil)).Elem(),
|
||||
|
||||
Reference in New Issue
Block a user