Skip to content

Commit

Permalink
added MapGroupCoords example
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosiamo committed Apr 12, 2022
1 parent 962c5bb commit 00c547f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
// The main func for DocuSort serves as testing for dsx,
// as well as, showing examples for GitHub
func main() {
// open files
// opens files
file := dsx.OpenXlsx("spreadsheets/testSheet.xlsx")
// closes files
defer dsx.CloseXlsx(file)
Expand Down Expand Up @@ -53,4 +53,12 @@ func main() {
fmt.Print(test4)
fmt.Println()
}

var testCol5 []string = []string{"A", "B", "C", "D"}
var testRow5 []int = []int{2, 3, 4, 5, 6}
// returns the coordinates of cells from the params passed
// dsx.MapGroupCoords(columns []string, rows []int) chan map[int]int
for test5 := range dsx.MapGroupCoords(testCol5, testRow5) {
fmt.Println(test5)
}
}

0 comments on commit 00c547f

Please sign in to comment.