github.com/goplus/gossa@v0.3.25/pkg/time/go115_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //+build go1.15,!go1.16 4 5 package time 6 7 import ( 8 q "time" 9 10 "go/constant" 11 "reflect" 12 13 "github.com/goplus/gossa" 14 ) 15 16 func init() { 17 gossa.RegisterPackage(&gossa.Package{ 18 Name: "time", 19 Path: "time", 20 Deps: map[string]string{ 21 "errors": "errors", 22 "runtime": "runtime", 23 "sync": "sync", 24 "syscall": "syscall", 25 "unsafe": "unsafe", 26 }, 27 Interfaces: map[string]reflect.Type{}, 28 NamedTypes: map[string]gossa.NamedType{ 29 "Duration": {reflect.TypeOf((*q.Duration)(nil)).Elem(), "Hours,Microseconds,Milliseconds,Minutes,Nanoseconds,Round,Seconds,String,Truncate", ""}, 30 "Location": {reflect.TypeOf((*q.Location)(nil)).Elem(), "", "String,firstZoneUsed,get,lookup,lookupFirstZone,lookupName"}, 31 "Month": {reflect.TypeOf((*q.Month)(nil)).Elem(), "String", ""}, 32 "ParseError": {reflect.TypeOf((*q.ParseError)(nil)).Elem(), "", "Error"}, 33 "Ticker": {reflect.TypeOf((*q.Ticker)(nil)).Elem(), "", "Reset,Stop"}, 34 "Time": {reflect.TypeOf((*q.Time)(nil)).Elem(), "Add,AddDate,After,AppendFormat,Before,Clock,Date,Day,Equal,Format,GobEncode,Hour,ISOWeek,In,IsZero,Local,Location,MarshalBinary,MarshalJSON,MarshalText,Minute,Month,Nanosecond,Round,Second,String,Sub,Truncate,UTC,Unix,UnixNano,Weekday,Year,YearDay,Zone,abs,date,locabs", "GobDecode,UnmarshalBinary,UnmarshalJSON,UnmarshalText,addSec,mono,nsec,sec,setLoc,setMono,stripMono,unixSec"}, 35 "Timer": {reflect.TypeOf((*q.Timer)(nil)).Elem(), "", "Reset,Stop"}, 36 "Weekday": {reflect.TypeOf((*q.Weekday)(nil)).Elem(), "String", ""}, 37 }, 38 AliasTypes: map[string]reflect.Type{}, 39 Vars: map[string]reflect.Value{ 40 "Local": reflect.ValueOf(&q.Local), 41 "UTC": reflect.ValueOf(&q.UTC), 42 }, 43 Funcs: map[string]reflect.Value{ 44 "After": reflect.ValueOf(q.After), 45 "AfterFunc": reflect.ValueOf(q.AfterFunc), 46 "Date": reflect.ValueOf(q.Date), 47 "FixedZone": reflect.ValueOf(q.FixedZone), 48 "LoadLocation": reflect.ValueOf(q.LoadLocation), 49 "LoadLocationFromTZData": reflect.ValueOf(q.LoadLocationFromTZData), 50 "NewTicker": reflect.ValueOf(q.NewTicker), 51 "NewTimer": reflect.ValueOf(q.NewTimer), 52 "Now": reflect.ValueOf(q.Now), 53 "Parse": reflect.ValueOf(q.Parse), 54 "ParseDuration": reflect.ValueOf(q.ParseDuration), 55 "ParseInLocation": reflect.ValueOf(q.ParseInLocation), 56 "Since": reflect.ValueOf(q.Since), 57 "Sleep": reflect.ValueOf(q.Sleep), 58 "Tick": reflect.ValueOf(q.Tick), 59 "Unix": reflect.ValueOf(q.Unix), 60 "Until": reflect.ValueOf(q.Until), 61 }, 62 TypedConsts: map[string]gossa.TypedConst{ 63 "April": {reflect.TypeOf(q.April), constant.MakeInt64(int64(q.April))}, 64 "August": {reflect.TypeOf(q.August), constant.MakeInt64(int64(q.August))}, 65 "December": {reflect.TypeOf(q.December), constant.MakeInt64(int64(q.December))}, 66 "February": {reflect.TypeOf(q.February), constant.MakeInt64(int64(q.February))}, 67 "Friday": {reflect.TypeOf(q.Friday), constant.MakeInt64(int64(q.Friday))}, 68 "Hour": {reflect.TypeOf(q.Hour), constant.MakeInt64(int64(q.Hour))}, 69 "January": {reflect.TypeOf(q.January), constant.MakeInt64(int64(q.January))}, 70 "July": {reflect.TypeOf(q.July), constant.MakeInt64(int64(q.July))}, 71 "June": {reflect.TypeOf(q.June), constant.MakeInt64(int64(q.June))}, 72 "March": {reflect.TypeOf(q.March), constant.MakeInt64(int64(q.March))}, 73 "May": {reflect.TypeOf(q.May), constant.MakeInt64(int64(q.May))}, 74 "Microsecond": {reflect.TypeOf(q.Microsecond), constant.MakeInt64(int64(q.Microsecond))}, 75 "Millisecond": {reflect.TypeOf(q.Millisecond), constant.MakeInt64(int64(q.Millisecond))}, 76 "Minute": {reflect.TypeOf(q.Minute), constant.MakeInt64(int64(q.Minute))}, 77 "Monday": {reflect.TypeOf(q.Monday), constant.MakeInt64(int64(q.Monday))}, 78 "Nanosecond": {reflect.TypeOf(q.Nanosecond), constant.MakeInt64(int64(q.Nanosecond))}, 79 "November": {reflect.TypeOf(q.November), constant.MakeInt64(int64(q.November))}, 80 "October": {reflect.TypeOf(q.October), constant.MakeInt64(int64(q.October))}, 81 "Saturday": {reflect.TypeOf(q.Saturday), constant.MakeInt64(int64(q.Saturday))}, 82 "Second": {reflect.TypeOf(q.Second), constant.MakeInt64(int64(q.Second))}, 83 "September": {reflect.TypeOf(q.September), constant.MakeInt64(int64(q.September))}, 84 "Sunday": {reflect.TypeOf(q.Sunday), constant.MakeInt64(int64(q.Sunday))}, 85 "Thursday": {reflect.TypeOf(q.Thursday), constant.MakeInt64(int64(q.Thursday))}, 86 "Tuesday": {reflect.TypeOf(q.Tuesday), constant.MakeInt64(int64(q.Tuesday))}, 87 "Wednesday": {reflect.TypeOf(q.Wednesday), constant.MakeInt64(int64(q.Wednesday))}, 88 }, 89 UntypedConsts: map[string]gossa.UntypedConst{ 90 "ANSIC": {"untyped string", constant.MakeString(string(q.ANSIC))}, 91 "Kitchen": {"untyped string", constant.MakeString(string(q.Kitchen))}, 92 "RFC1123": {"untyped string", constant.MakeString(string(q.RFC1123))}, 93 "RFC1123Z": {"untyped string", constant.MakeString(string(q.RFC1123Z))}, 94 "RFC3339": {"untyped string", constant.MakeString(string(q.RFC3339))}, 95 "RFC3339Nano": {"untyped string", constant.MakeString(string(q.RFC3339Nano))}, 96 "RFC822": {"untyped string", constant.MakeString(string(q.RFC822))}, 97 "RFC822Z": {"untyped string", constant.MakeString(string(q.RFC822Z))}, 98 "RFC850": {"untyped string", constant.MakeString(string(q.RFC850))}, 99 "RubyDate": {"untyped string", constant.MakeString(string(q.RubyDate))}, 100 "Stamp": {"untyped string", constant.MakeString(string(q.Stamp))}, 101 "StampMicro": {"untyped string", constant.MakeString(string(q.StampMicro))}, 102 "StampMilli": {"untyped string", constant.MakeString(string(q.StampMilli))}, 103 "StampNano": {"untyped string", constant.MakeString(string(q.StampNano))}, 104 "UnixDate": {"untyped string", constant.MakeString(string(q.UnixDate))}, 105 }, 106 }) 107 }