(input []model.GuildConfig)
| 1376 | } |
| 1377 | |
| 1378 | func guildConfigMap(input []model.GuildConfig) map[int64]*model.GuildConfig { |
| 1379 | output := make(map[int64]*model.GuildConfig, len(input)) |
| 1380 | for _, cfg := range input { |
| 1381 | cloned := cloneGuildConfig(cfg) |
| 1382 | output[cfg.GuildID] = &cloned |
| 1383 | } |
| 1384 | return output |
| 1385 | } |
| 1386 | |
| 1387 | func userProfileMap(input []model.UserProfile) map[int64]*model.UserProfile { |
| 1388 | output := make(map[int64]*model.UserProfile, len(input)) |
no test coverage detected