chore: 并入 iotlcm-admin-svr 历史到 admin-svr/(原提交 49818c6)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package excel
|
||||
|
||||
import "strings"
|
||||
|
||||
type ParsedRow struct {
|
||||
RowNo int
|
||||
Fields map[string]string
|
||||
}
|
||||
|
||||
func Field(row ParsedRow, name string) string {
|
||||
if row.Fields == nil {
|
||||
return ""
|
||||
}
|
||||
return strings.TrimSpace(row.Fields[NormalizeHeader(name)])
|
||||
}
|
||||
Reference in New Issue
Block a user