diff --git a/internal/templates/results.go b/internal/templates/results.go index 23d3ea6..27d8b39 100644 --- a/internal/templates/results.go +++ b/internal/templates/results.go @@ -1,6 +1,8 @@ package templates -import "fmt" +import ( + "fmt" +) // Table wrapper definitions const table_open string = `` @@ -52,11 +54,7 @@ func generateRow(cols []string, data map[string]interface{}) string { row := "" for _, col := range cols { - str, ok := data[col].(string) - if !ok { - str = "NULL" - } - row += fmt.Sprintf(table_body_row, str) + row += fmt.Sprintf(table_body_row, data[col]) } return row + ""