Documentation
¶
Index ¶
- Constants
- Variables
- func GetClassName(v interface{}) string
- type Class
- type Method
- func (m *Method) GetArgs() []reflect.Type
- func (m *Method) GetClass() *Class
- func (m *Method) GetName() string
- func (m *Method) GetPath() string
- func (m *Method) GetPkgName() string
- func (m *Method) GetRets() []reflect.Type
- func (m *Method) HasArgs() bool
- func (m *Method) HasRets() bool
- func (m *Method) Invoke(args []reflect.Value) []reflect.Value
- type Time
- func (t *Time) IsZero() bool
- func (t *Time) MarshalJSON() ([]byte, error)
- func (t *Time) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (t *Time) Scan(val interface{}) (err error)
- func (t Time) String() string
- func (t *Time) Time() time.Time
- func (t *Time) UTCString() string
- func (t *Time) UnmarshalJSON(data []byte) (err error)
- func (t *Time) Value() (driver.Value, error)
- type TimeStandard
- func (t *TimeStandard) IsZero() bool
- func (t *TimeStandard) MarshalJSON() ([]byte, error)
- func (t *TimeStandard) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (t *TimeStandard) Scan(val interface{}) (err error)
- func (t TimeStandard) String() string
- func (t *TimeStandard) Time() time.Time
- func (t *TimeStandard) UTCString() string
- func (t *TimeStandard) UnmarshalJSON(data []byte) (err error)
- func (t *TimeStandard) Value() (driver.Value, error)
Constants ¶
View Source
const ( TimeFormat = "2006-01-02 15:04:05" TimeFormatT = "2006-01-02T15:04:05" )
Variables ¶
Functions ¶
func GetClassName ¶
func GetClassName(v interface{}) string
Types ¶
type Class ¶
type Class struct {
// contains filtered or unexported fields
}
Class 声明类
func (*Class) GetPkgName ¶
type Method ¶
type Method struct {
// contains filtered or unexported fields
}
func (*Method) GetPkgName ¶
type TimeStandard ¶
func NewTimeStandard ¶
func NewTimeStandard(str string) TimeStandard
func (*TimeStandard) IsZero ¶
func (t *TimeStandard) IsZero() bool
func (*TimeStandard) MarshalJSON ¶
func (t *TimeStandard) MarshalJSON() ([]byte, error)
func (*TimeStandard) MarshalXML ¶
func (t *TimeStandard) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (*TimeStandard) Scan ¶
func (t *TimeStandard) Scan(val interface{}) (err error)
func (TimeStandard) String ¶
func (t TimeStandard) String() string
func (*TimeStandard) Time ¶
func (t *TimeStandard) Time() time.Time
func (*TimeStandard) UTCString ¶
func (t *TimeStandard) UTCString() string
func (*TimeStandard) UnmarshalJSON ¶
func (t *TimeStandard) UnmarshalJSON(data []byte) (err error)
Click to show internal directories.
Click to hide internal directories.