github.com/goplus/gossa@v0.3.25/pkg/encoding/asn1/go117_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //go:build go1.17 && !go1.18 4 // +build go1.17,!go1.18 5 6 package asn1 7 8 import ( 9 q "encoding/asn1" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.Package{ 19 Name: "asn1", 20 Path: "encoding/asn1", 21 Deps: map[string]string{ 22 "bytes": "bytes", 23 "errors": "errors", 24 "fmt": "fmt", 25 "math": "math", 26 "math/big": "big", 27 "reflect": "reflect", 28 "sort": "sort", 29 "strconv": "strconv", 30 "strings": "strings", 31 "time": "time", 32 "unicode/utf16": "utf16", 33 "unicode/utf8": "utf8", 34 }, 35 Interfaces: map[string]reflect.Type{}, 36 NamedTypes: map[string]gossa.NamedType{ 37 "BitString": {reflect.TypeOf((*q.BitString)(nil)).Elem(), "At,RightAlign", ""}, 38 "Enumerated": {reflect.TypeOf((*q.Enumerated)(nil)).Elem(), "", ""}, 39 "Flag": {reflect.TypeOf((*q.Flag)(nil)).Elem(), "", ""}, 40 "ObjectIdentifier": {reflect.TypeOf((*q.ObjectIdentifier)(nil)).Elem(), "Equal,String", ""}, 41 "RawContent": {reflect.TypeOf((*q.RawContent)(nil)).Elem(), "", ""}, 42 "RawValue": {reflect.TypeOf((*q.RawValue)(nil)).Elem(), "", ""}, 43 "StructuralError": {reflect.TypeOf((*q.StructuralError)(nil)).Elem(), "Error", ""}, 44 "SyntaxError": {reflect.TypeOf((*q.SyntaxError)(nil)).Elem(), "Error", ""}, 45 }, 46 AliasTypes: map[string]reflect.Type{}, 47 Vars: map[string]reflect.Value{ 48 "NullBytes": reflect.ValueOf(&q.NullBytes), 49 "NullRawValue": reflect.ValueOf(&q.NullRawValue), 50 }, 51 Funcs: map[string]reflect.Value{ 52 "Marshal": reflect.ValueOf(q.Marshal), 53 "MarshalWithParams": reflect.ValueOf(q.MarshalWithParams), 54 "Unmarshal": reflect.ValueOf(q.Unmarshal), 55 "UnmarshalWithParams": reflect.ValueOf(q.UnmarshalWithParams), 56 }, 57 TypedConsts: map[string]gossa.TypedConst{}, 58 UntypedConsts: map[string]gossa.UntypedConst{ 59 "ClassApplication": {"untyped int", constant.MakeInt64(int64(q.ClassApplication))}, 60 "ClassContextSpecific": {"untyped int", constant.MakeInt64(int64(q.ClassContextSpecific))}, 61 "ClassPrivate": {"untyped int", constant.MakeInt64(int64(q.ClassPrivate))}, 62 "ClassUniversal": {"untyped int", constant.MakeInt64(int64(q.ClassUniversal))}, 63 "TagBMPString": {"untyped int", constant.MakeInt64(int64(q.TagBMPString))}, 64 "TagBitString": {"untyped int", constant.MakeInt64(int64(q.TagBitString))}, 65 "TagBoolean": {"untyped int", constant.MakeInt64(int64(q.TagBoolean))}, 66 "TagEnum": {"untyped int", constant.MakeInt64(int64(q.TagEnum))}, 67 "TagGeneralString": {"untyped int", constant.MakeInt64(int64(q.TagGeneralString))}, 68 "TagGeneralizedTime": {"untyped int", constant.MakeInt64(int64(q.TagGeneralizedTime))}, 69 "TagIA5String": {"untyped int", constant.MakeInt64(int64(q.TagIA5String))}, 70 "TagInteger": {"untyped int", constant.MakeInt64(int64(q.TagInteger))}, 71 "TagNull": {"untyped int", constant.MakeInt64(int64(q.TagNull))}, 72 "TagNumericString": {"untyped int", constant.MakeInt64(int64(q.TagNumericString))}, 73 "TagOID": {"untyped int", constant.MakeInt64(int64(q.TagOID))}, 74 "TagOctetString": {"untyped int", constant.MakeInt64(int64(q.TagOctetString))}, 75 "TagPrintableString": {"untyped int", constant.MakeInt64(int64(q.TagPrintableString))}, 76 "TagSequence": {"untyped int", constant.MakeInt64(int64(q.TagSequence))}, 77 "TagSet": {"untyped int", constant.MakeInt64(int64(q.TagSet))}, 78 "TagT61String": {"untyped int", constant.MakeInt64(int64(q.TagT61String))}, 79 "TagUTCTime": {"untyped int", constant.MakeInt64(int64(q.TagUTCTime))}, 80 "TagUTF8String": {"untyped int", constant.MakeInt64(int64(q.TagUTF8String))}, 81 }, 82 }) 83 }