Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultSheetName = "defines"
)
Functions ¶
func Marshal ¶
Example ¶
type st struct {
Name string `eexcel:"name"`
Number int `eexcel:"number"`
}
input := st{
Name: "go-eexcel",
Number: 123456,
}
b, _ := Marshal(input)
if false {
// Save to file
ioutil.WriteFile("out.xlsx", b, 0666)
}
xlsx, _ := excelize.OpenReader(bytes.NewReader(b))
rows := xlsx.GetRows(DefaultSheetName)
for _, row := range rows {
fmt.Printf("%s\n", strings.Join(row, " "))
}
Output: key value name go-eexcel number 123456
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.