func getOrCreatePlatform(platforms map[string]*types.Platform, platformId string) *types.Platform { if _, ok := platforms[platformId]; ok { return platforms[platformId] } targetPlatform := types.Platform{} targetPlatform.PlatformId = platformId targetPlatform.Boards = make(map[string]*types.Board) targetPlatform.Properties = make(map[string]string) targetPlatform.Programmers = make(map[string]map[string]string) return &targetPlatform }