func atomicUsers(users responses.GeneralArrMsg) responses.GeneralArrMsg { service.MutexTime() executionUsers.Store(users) dataUsers := executionUsers.Load().(responses.GeneralArrMsg) return dataUsers }
func atomicUser(user requests.User) requests.User { service.MutexTime() executionUser.Store(user) dataUser := executionUser.Load().(requests.User) return dataUser }