func NewRecord() (this *Record) { this = new(Record) this.Id = u.TimeUUID() this.TodayAndNow = time.Now().In(time.Local) this.Pid = syscall.Getpid() return this }
// Добавление в пул нового backend func (self *Backends) AddBackend(item *Backend) (ret *u.UUID, err error) { ret = new(u.UUID) *ret = u.TimeUUID() if item == nil { err = ErrBackendIsNull return } self.PoolIndex[*ret] = self.Pool.PushBack(item) return }
func TestRecordGetFormatedElement(t *testing.T) { var obj *Record = new(Record) // var resp string // var err error // var matches [][]int makeDictionary(obj) obj.Id = uuid.TimeUUID() // matches, err = CheckFormat(TestTpl1) // resp = obj.getFormatedElement(templateNames[`id`], ``) //debug.Dumper(matches, err, resp) }
// New log object func NewLog() Log { return newLogEssence(u.TimeUUID()).Interface }