Example #1
0
func NewErr(msg string) (err *ErrMsg) {
	return &ErrMsg{
		Id:         uuid.NewV4(),
		CreateTime: utils.Time(time.Now()),
		UpdateTime: utils.Time(time.Now()),
		Message:    msg,
	}
}
Example #2
0
//create time at Now
func (self *Server) crTime() {
	self.CreateTime = utils.Time(time.Now())
}
Example #3
0
//update time at Now
func (self *Server) upTime() {
	self.UpdateTime = utils.Time(time.Now())
}