(userId int)
| 151 | } |
| 152 | |
| 153 | func (m *StorageModule) load(userId int) StorageData { |
| 154 | var data StorageData |
| 155 | m.plug.ReadIntoStruct(dataKey(userId), &data) |
| 156 | return data |
| 157 | } |
| 158 | |
| 159 | func (m *StorageModule) save(userId int, data StorageData) { |
| 160 | m.plug.WriteStruct(dataKey(userId), data) |
no test coverage detected