utils

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TimezoneDatePattern = "2006-01-02T15:04:05Z"
)

Variables

This section is empty.

Functions

func Call

func Call(instance interface{}, methodName string, params ...interface{}) ([]reflect.Value, error)

func FormatDate

func FormatDate(date time.Time, pattern string) string

将UTC日期转换为日期字符串

func GenStandardUuid

func GenStandardUuid() (ret string, err error)

func GetUnExportedField

func GetUnExportedField(ptr interface{}, fieldName string) reflect.Value

func LogAndAddMonitorMessage

func LogAndAddMonitorMessage(blockingQueue *models.BlockingQueue, monitorMessageInfo *models.MonitorMessageInfo)

func ParseDate

func ParseDate(dateStr string, pattern string) (int64, error)

将UTC日期字符串转换为时间戳毫秒数

func SetUnExportedField

func SetUnExportedField(ptr interface{}, fieldName string, newFieldVal interface{}) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL