github.com/qioalice/ekago/v3@v3.3.2-0.20221202205325-5c262d586ee4/internal/ekaclike/rtypes.go (about) 1 // Copyright © 2020. All rights reserved. 2 // Author: Ilya Stroy. 3 // Contacts: iyuryevich@pm.me, https://github.com/qioalice 4 // License: https://opensource.org/licenses/MIT 5 6 package ekaclike 7 8 import ( 9 "time" 10 "unsafe" 11 12 "github.com/modern-go/reflect2" 13 ) 14 15 //goland:noinspection GoVarAndConstTypeMayBeOmitted,GoRedundantConversion,GoBoolExpressions 16 var ( 17 RTypeBool = reflect2.RTypeOf(bool(0 == 0)) 18 RTypeByte = reflect2.RTypeOf(byte(0)) 19 RTypeRune = reflect2.RTypeOf(rune(0)) 20 RTypeInt = reflect2.RTypeOf(int(0)) 21 RTypeInt8 = reflect2.RTypeOf(int8(0)) 22 RTypeInt16 = reflect2.RTypeOf(int16(0)) 23 RTypeInt32 = reflect2.RTypeOf(int32(0)) 24 RTypeInt64 = reflect2.RTypeOf(int64(0)) 25 RTypeUint = reflect2.RTypeOf(uint(0)) 26 RTypeUint8 = reflect2.RTypeOf(uint8(0)) 27 RTypeUint16 = reflect2.RTypeOf(uint16(0)) 28 RTypeUint32 = reflect2.RTypeOf(uint32(0)) 29 RTypeUint64 = reflect2.RTypeOf(uint64(0)) 30 RTypeFloat32 = reflect2.RTypeOf(float32(0)) 31 RTypeFloat64 = reflect2.RTypeOf(float64(0)) 32 RTypeComplex64 = reflect2.RTypeOf(complex64(0)) 33 RTypeComplex128 = reflect2.RTypeOf(complex128(0)) 34 RTypeString = reflect2.RTypeOf(string("")) 35 RTypeStringArray = reflect2.RTypeOf([]string(nil)) 36 RTypeBytes = reflect2.RTypeOf([]byte(nil)) 37 RTypeBytesArray = reflect2.RTypeOf([][]byte(nil)) 38 RTypeMapStringString = reflect2.RTypeOf(map[string]string(nil)) 39 RTypeMapStringInterface = reflect2.RTypeOf(map[string]any(nil)) 40 RTypeUintptr = reflect2.RTypeOf(uintptr(0)) 41 RTypeUnsafePointer = reflect2.RTypeOf(unsafe.Pointer(nil)) 42 RTypeTimeTime = reflect2.RTypeOf(time.Time{}) 43 RTypeTimeDuration = reflect2.RTypeOf(time.Duration(0)) 44 )