func (s *Sheet) print(startingCel string, slice *[]string, format int, bold bool) error {
	var err error
	var style int
	json, err := jsonStyle(10, format, bold)
	if err != nil {
		return err
	}
	style, err = s.xlsx.NewStyle(string(json))
	if style > 0 && err == nil {
		col, row := cell2axis(startingCel)
		col += len(*slice)
		s.xlsx.SetCellStyle(s.name, startingCel, axis(col, row), style)
	}
	s.xlsx.SetSheetRow(s.name, startingCel, slice)
	return nil
}
print cols in Excel
package reports
import (
	"encoding/json"
	"strconv"
	"github.com/360EntSecGroup-Skylar/excelize"
	"github.com/pkg/errors"
)
type Excel struct {
	xlsx *excelize.File
}
func newExcel() (e *Excel) {
	e = &Excel{}
	e.xlsx = excelize.NewFile()
	return
}
func (e *Excel) saveAndCloseExcel(filename string) (err error) {
	e.xlsx.DeleteSheet("Sheet1")
	e.xlsx.SetActiveSheet(1)
	err = e.xlsx.SaveAs(filename)
	if err != nil {
		return errors.Wrapf(err, "erro ao salvar planilha")
	}
	return
}
type Sheet struct {
	xlsx *excelize.File
	name string
}
func (e *Excel) newSheet(name string) (s *Sheet, err error) {
	s = &Sheet{}
	s.name = name
	s.xlsx = e.xlsx
	if index := e.xlsx.GetSheetIndex(name); index > 0 {
		return nil, errors.Wrapf(err, "erro ao criar planilha %s", name)
	}
	e.xlsx.NewSheet(name)
	return
}
func (s Sheet) printCell(row, col int, value interface{}, styleID int) {
	cell := axis(col, row)
	s.xlsx.SetCellValue(s.name, cell, value)
	s.xlsx.SetCellStyle(s.name, cell, cell, styleID)
}
func (s *Sheet) printTitle(cell string, title string) (err error) {
	s.xlsx.SetSheetRow(s.name, cell, &[]string{title})
	style, err := s.xlsx.NewStyle(`{"number_format": 0,"font":{"bold":true},"alignment":{"horizontal":"center"},"border":[{"type":"bottom","color":"333333","style":3}]}`)
	if err == nil {
		s.xlsx.SetCellStyle(s.name, cell, cell, style)
	}
	return
}