16 lines
248 B
Go
16 lines
248 B
Go
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)])
|
|
}
|