草庐IT

exceldata

全部标签

excel - 如何在golang函数中返回结构字典

我需要从函数中重新运行structduitonary,当它运行脚本时,我开始无法在返回参数中使用res(类型[]exceldata)作为类型[]struct{}我已经在我的go脚本中创建了struct,我向它添加了值并添加到数组中,现在我需要将它返回到主要函数中packagemainimport("fmt""database/sql"_"github.com/go-sql-driver/mysql""github.com/360EntSecGroup-Skylar/excelize""log")typeexceldatastruct{usernamestringrfidstringus