Skip to content

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosiamo committed Apr 12, 2022
1 parent 00c547f commit 1d65a2c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ DocuSort is a collection of Go packages that are meant to make sorting `.xlsx`,
- [Group method](#group-method)
- [RangeOfRows method](#rangeofrows-method)
- [RangeOfCols method](#rangeofcols-method)
- [Map group coordinates](#mapgroupcoords-method)
- [Get all data by rows](#to-get-all-data-by-row)
- [Get all data by columns](#to-get-all-data-by-column)

Expand Down Expand Up @@ -102,6 +103,24 @@ func main() {
}
```

### MapGroupCoords method
Maps the cells coordinates to the parameters that are provided.
```go
func main() {
file := dsx.OpenXlsx("spreadsheets/testSheet.xlsx")
defer dsx.CloseXlsx(f)
sheet := "Sheet1"

var columns []string = []string{"A", "B", "C", "D"}
var rows []int = []int{2, 3, 4, 5, 6}
for res := range dsx.MapGroupCoords(columns, rows) {
fmt.Println(res)
}
}
```

<img src="/imgs/MapGroupCoordsRes.png">

### To get all data by row
```go
func main() {
Expand Down
Binary file added imgs/MapGroupCoordsRes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1d65a2c

Please sign in to comment.