按列赋值

  1. func (f *File) SetSheetCol(sheet, cell string, slice interface{}) error

根据给定的工作表名称、起始坐标和 slice 类型引用按列赋值。例如,在名为 Sheet1 的工作表 B 列上,以 B6 单元格作为起始坐标按列赋值:

  1. err := f.SetSheetCol("Sheet1", "B6", &[]interface{}{"1", nil, 2})