Created
January 11, 2013 02:52
-
-
Save olliebun/4507604 to your computer and use it in GitHub Desktop.
variable naming and keyword overlap in go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func find_paths_in_ranges(match_ranges []*matchRange) []Path { | |
var ( | |
paths = make([]Path, len(ranges)) | |
path Path | |
i, j int | |
row *csvm.Row | |
match_range *matchRange | |
) | |
for i, match_range = range ranges { | |
path = make(Path, match_range.start - match_range.end) | |
for j = match_range.start; j < match_range.end; j++ { | |
path[j] = match_range[j + match_range.start].Copy() | |
} | |
paths[i] = path | |
} | |
return paths | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment