You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.4 KiB
Go

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// Code generated by xgo (XGo); DO NOT EDIT.
package main
import (
"fmt"
"github.com/fatih/color"
"github.com/qiniu/x/errors"
"github.com/xuri/excelize/v2"
)
const _ = true
//line main.xgo:7
func main() {
//line main.xgo:7:1
f := func() (_xgo_ret *excelize.File) {
//line main.xgo:7:1
var _xgo_err error
//line main.xgo:7:1
_xgo_ret, _xgo_err = excelize.OpenFile("../.docs/Пример выгузки из РМИАС.xlsx")
//line main.xgo:7:1
if _xgo_err != nil {
//line main.xgo:7:1
_xgo_err = errors.NewFrame(_xgo_err, "excelize.OpenFile(\"../.docs/Пример выгузки из РМИАС.xlsx\")", "main.xgo", 7, "main.main")
//line main.xgo:7:1
panic(_xgo_err)
}
//line main.xgo:7:1
return
}()
//line main.xgo:8:1
defer f.Close()
//line main.xgo:11:1
cyan := color.New(color.FgCyan)
//line main.xgo:13:1
rows := func() (_xgo_ret [][]string) {
//line main.xgo:13:1
var _xgo_err error
//line main.xgo:13:1
_xgo_ret, _xgo_err = f.GetRows("Лист1")
//line main.xgo:13:1
if _xgo_err != nil {
//line main.xgo:13:1
_xgo_err = errors.NewFrame(_xgo_err, "f.GetRows(\"Лист1\")", "main.xgo", 13, "main.main")
//line main.xgo:13:1
panic(_xgo_err)
}
//line main.xgo:13:1
return
}()
for
//line main.xgo:15:1
i, colCell := range rows[0] {
//line main.xgo:16:1
cyan.Printf("[%s]: ", colCell)
//line main.xgo:17:1
fmt.Printf(" %s\n", rows[1][i])
}
}