Answer the question
In order to leave comments, you need to log in
How to shorten an entry?
I wanted something like this:
rw.Lock()
m_sessionStorage[sessid].Up = time.Now().Unix()
rw.Unlock()
rw.Lock()
gg := m_sessionStorage[sessid]
gg.Up = time.Now().Unix()
m_sessionStorage[sessid] = gg
rw.Unlock()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question