https://github.com/atikahe/go-excel-matrix
Generates matrix into excel and enables writing value into a cell given the row and the column name.
https://github.com/atikahe/go-excel-matrix
excelize go
Last synced: about 1 year ago
JSON representation
Generates matrix into excel and enables writing value into a cell given the row and the column name.
- Host: GitHub
- URL: https://github.com/atikahe/go-excel-matrix
- Owner: atikahe
- Created: 2022-09-22T15:43:58.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-23T07:45:14.000Z (almost 4 years ago)
- Last Synced: 2025-02-02T18:57:37.200Z (over 1 year ago)
- Topics: excelize, go
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# goexcelmatrix
Project goexcelmatrix generates matrix into excel and enables writing value into a cell given the row and column name.
Early development stage, hence being somewhat obscure.
## Installation
```sh
go get github.com/atikahe/go-excel-matrix
```
## Usage
```go
package main
import "github.com/atikahe/go-excel-matrix"
package main() {
// Create new file
excel := goexcelmatrix.NewFile()
// Initialize rows and columns
rows := []string{"Student-1", "Student-2", "Student-3"}
cols := []string{"Math", "Social Science", "History"}
excel.SetRows(rows).SetColumns(cols)
// Input data
scores := [][]string{
{"Student-1", "Math", "A"},
{"Student-2", "Social Science", "B"},
{"Student-3", "History", "B"},
}
for _, score := range scores {
excel.SetValue(score)
}
// Save file
excel.Save("AP_Score_2022")
}
```
## To Do
- Param validation & error handling
- Automate test
## Testing
Testing will go here.
## Contribution
Contributions will go here.
## Project Status
Early development.