xlsx.SetDefaultSheet(id, idx)
id
. An XLSX document's default worksheet is the worksheet that is
to be used in case no worksheet is explicitly specified when calling functions
like xlsx.SetCellValue() or xlsx.GetCellValue(). You need to pass
the position of the desired default worksheet in the idx
argument. Worksheet
indices start at 1 for the first worksheet.
By default, the first worksheet in the XLSX document is the default worksheet.