github.com/goplus/igop@v0.25.0/pkg/time/go121_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.21 4 // +build go1.21 5 6 package time 7 8 import ( 9 q "time" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.Package{ 19 Name: "time", 20 Path: "time", 21 Deps: map[string]string{ 22 "errors": "errors", 23 "runtime": "runtime", 24 "sync": "sync", 25 "syscall": "syscall", 26 "unsafe": "unsafe", 27 }, 28 Interfaces: map[string]reflect.Type{}, 29 NamedTypes: map[string]reflect.Type{ 30 "Duration": reflect.TypeOf((*q.Duration)(nil)).Elem(), 31 "Location": reflect.TypeOf((*q.Location)(nil)).Elem(), 32 "Month": reflect.TypeOf((*q.Month)(nil)).Elem(), 33 "ParseError": reflect.TypeOf((*q.ParseError)(nil)).Elem(), 34 "Ticker": reflect.TypeOf((*q.Ticker)(nil)).Elem(), 35 "Time": reflect.TypeOf((*q.Time)(nil)).Elem(), 36 "Timer": reflect.TypeOf((*q.Timer)(nil)).Elem(), 37 "Weekday": reflect.TypeOf((*q.Weekday)(nil)).Elem(), 38 }, 39 AliasTypes: map[string]reflect.Type{}, 40 Vars: map[string]reflect.Value{ 41 "Local": reflect.ValueOf(&q.Local), 42 "UTC": reflect.ValueOf(&q.UTC), 43 }, 44 Funcs: map[string]reflect.Value{ 45 "After": reflect.ValueOf(q.After), 46 "AfterFunc": reflect.ValueOf(q.AfterFunc), 47 "Date": reflect.ValueOf(q.Date), 48 "FixedZone": reflect.ValueOf(q.FixedZone), 49 "LoadLocation": reflect.ValueOf(q.LoadLocation), 50 "LoadLocationFromTZData": reflect.ValueOf(q.LoadLocationFromTZData), 51 "NewTicker": reflect.ValueOf(q.NewTicker), 52 "NewTimer": reflect.ValueOf(q.NewTimer), 53 "Now": reflect.ValueOf(q.Now), 54 "Parse": reflect.ValueOf(q.Parse), 55 "ParseDuration": reflect.ValueOf(q.ParseDuration), 56 "ParseInLocation": reflect.ValueOf(q.ParseInLocation), 57 "Since": reflect.ValueOf(q.Since), 58 "Sleep": reflect.ValueOf(q.Sleep), 59 "Tick": reflect.ValueOf(q.Tick), 60 "Unix": reflect.ValueOf(q.Unix), 61 "UnixMicro": reflect.ValueOf(q.UnixMicro), 62 "UnixMilli": reflect.ValueOf(q.UnixMilli), 63 "Until": reflect.ValueOf(q.Until), 64 }, 65 TypedConsts: map[string]igop.TypedConst{ 66 "April": {reflect.TypeOf(q.April), constant.MakeInt64(int64(q.April))}, 67 "August": {reflect.TypeOf(q.August), constant.MakeInt64(int64(q.August))}, 68 "December": {reflect.TypeOf(q.December), constant.MakeInt64(int64(q.December))}, 69 "February": {reflect.TypeOf(q.February), constant.MakeInt64(int64(q.February))}, 70 "Friday": {reflect.TypeOf(q.Friday), constant.MakeInt64(int64(q.Friday))}, 71 "Hour": {reflect.TypeOf(q.Hour), constant.MakeInt64(int64(q.Hour))}, 72 "January": {reflect.TypeOf(q.January), constant.MakeInt64(int64(q.January))}, 73 "July": {reflect.TypeOf(q.July), constant.MakeInt64(int64(q.July))}, 74 "June": {reflect.TypeOf(q.June), constant.MakeInt64(int64(q.June))}, 75 "March": {reflect.TypeOf(q.March), constant.MakeInt64(int64(q.March))}, 76 "May": {reflect.TypeOf(q.May), constant.MakeInt64(int64(q.May))}, 77 "Microsecond": {reflect.TypeOf(q.Microsecond), constant.MakeInt64(int64(q.Microsecond))}, 78 "Millisecond": {reflect.TypeOf(q.Millisecond), constant.MakeInt64(int64(q.Millisecond))}, 79 "Minute": {reflect.TypeOf(q.Minute), constant.MakeInt64(int64(q.Minute))}, 80 "Monday": {reflect.TypeOf(q.Monday), constant.MakeInt64(int64(q.Monday))}, 81 "Nanosecond": {reflect.TypeOf(q.Nanosecond), constant.MakeInt64(int64(q.Nanosecond))}, 82 "November": {reflect.TypeOf(q.November), constant.MakeInt64(int64(q.November))}, 83 "October": {reflect.TypeOf(q.October), constant.MakeInt64(int64(q.October))}, 84 "Saturday": {reflect.TypeOf(q.Saturday), constant.MakeInt64(int64(q.Saturday))}, 85 "Second": {reflect.TypeOf(q.Second), constant.MakeInt64(int64(q.Second))}, 86 "September": {reflect.TypeOf(q.September), constant.MakeInt64(int64(q.September))}, 87 "Sunday": {reflect.TypeOf(q.Sunday), constant.MakeInt64(int64(q.Sunday))}, 88 "Thursday": {reflect.TypeOf(q.Thursday), constant.MakeInt64(int64(q.Thursday))}, 89 "Tuesday": {reflect.TypeOf(q.Tuesday), constant.MakeInt64(int64(q.Tuesday))}, 90 "Wednesday": {reflect.TypeOf(q.Wednesday), constant.MakeInt64(int64(q.Wednesday))}, 91 }, 92 UntypedConsts: map[string]igop.UntypedConst{ 93 "ANSIC": {"untyped string", constant.MakeString(string(q.ANSIC))}, 94 "DateOnly": {"untyped string", constant.MakeString(string(q.DateOnly))}, 95 "DateTime": {"untyped string", constant.MakeString(string(q.DateTime))}, 96 "Kitchen": {"untyped string", constant.MakeString(string(q.Kitchen))}, 97 "Layout": {"untyped string", constant.MakeString(string(q.Layout))}, 98 "RFC1123": {"untyped string", constant.MakeString(string(q.RFC1123))}, 99 "RFC1123Z": {"untyped string", constant.MakeString(string(q.RFC1123Z))}, 100 "RFC3339": {"untyped string", constant.MakeString(string(q.RFC3339))}, 101 "RFC3339Nano": {"untyped string", constant.MakeString(string(q.RFC3339Nano))}, 102 "RFC822": {"untyped string", constant.MakeString(string(q.RFC822))}, 103 "RFC822Z": {"untyped string", constant.MakeString(string(q.RFC822Z))}, 104 "RFC850": {"untyped string", constant.MakeString(string(q.RFC850))}, 105 "RubyDate": {"untyped string", constant.MakeString(string(q.RubyDate))}, 106 "Stamp": {"untyped string", constant.MakeString(string(q.Stamp))}, 107 "StampMicro": {"untyped string", constant.MakeString(string(q.StampMicro))}, 108 "StampMilli": {"untyped string", constant.MakeString(string(q.StampMilli))}, 109 "StampNano": {"untyped string", constant.MakeString(string(q.StampNano))}, 110 "TimeOnly": {"untyped string", constant.MakeString(string(q.TimeOnly))}, 111 "UnixDate": {"untyped string", constant.MakeString(string(q.UnixDate))}, 112 }, 113 }) 114 }