github.com/goplus/gossa@v0.3.25/pkg/time/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 time 7 8 import ( 9 q "time" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.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]gossa.NamedType{ 30 "Duration": {reflect.TypeOf((*q.Duration)(nil)).Elem(), "Hours,Microseconds,Milliseconds,Minutes,Nanoseconds,Round,Seconds,String,Truncate", ""}, 31 "Location": {reflect.TypeOf((*q.Location)(nil)).Elem(), "", "String,firstZoneUsed,get,lookup,lookupFirstZone,lookupName"}, 32 "Month": {reflect.TypeOf((*q.Month)(nil)).Elem(), "String", ""}, 33 "ParseError": {reflect.TypeOf((*q.ParseError)(nil)).Elem(), "", "Error"}, 34 "Ticker": {reflect.TypeOf((*q.Ticker)(nil)).Elem(), "", "Reset,Stop"}, 35 "Time": {reflect.TypeOf((*q.Time)(nil)).Elem(), "Add,AddDate,After,AppendFormat,Before,Clock,Date,Day,Equal,Format,GoString,GobEncode,Hour,ISOWeek,In,IsDST,IsZero,Local,Location,MarshalBinary,MarshalJSON,MarshalText,Minute,Month,Nanosecond,Round,Second,String,Sub,Truncate,UTC,Unix,UnixMicro,UnixMilli,UnixNano,Weekday,Year,YearDay,Zone,abs,date,locabs", "GobDecode,UnmarshalBinary,UnmarshalJSON,UnmarshalText,addSec,mono,nsec,sec,setLoc,setMono,stripMono,unixSec"}, 36 "Timer": {reflect.TypeOf((*q.Timer)(nil)).Elem(), "", "Reset,Stop"}, 37 "Weekday": {reflect.TypeOf((*q.Weekday)(nil)).Elem(), "String", ""}, 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]gossa.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]gossa.UntypedConst{ 93 "ANSIC": {"untyped string", constant.MakeString(string(q.ANSIC))}, 94 "Kitchen": {"untyped string", constant.MakeString(string(q.Kitchen))}, 95 "Layout": {"untyped string", constant.MakeString(string(q.Layout))}, 96 "RFC1123": {"untyped string", constant.MakeString(string(q.RFC1123))}, 97 "RFC1123Z": {"untyped string", constant.MakeString(string(q.RFC1123Z))}, 98 "RFC3339": {"untyped string", constant.MakeString(string(q.RFC3339))}, 99 "RFC3339Nano": {"untyped string", constant.MakeString(string(q.RFC3339Nano))}, 100 "RFC822": {"untyped string", constant.MakeString(string(q.RFC822))}, 101 "RFC822Z": {"untyped string", constant.MakeString(string(q.RFC822Z))}, 102 "RFC850": {"untyped string", constant.MakeString(string(q.RFC850))}, 103 "RubyDate": {"untyped string", constant.MakeString(string(q.RubyDate))}, 104 "Stamp": {"untyped string", constant.MakeString(string(q.Stamp))}, 105 "StampMicro": {"untyped string", constant.MakeString(string(q.StampMicro))}, 106 "StampMilli": {"untyped string", constant.MakeString(string(q.StampMilli))}, 107 "StampNano": {"untyped string", constant.MakeString(string(q.StampNano))}, 108 "UnixDate": {"untyped string", constant.MakeString(string(q.UnixDate))}, 109 }, 110 }) 111 }