diff options
| author | Randall Meyer <[email protected]> | 2023-02-15 10:34:04 -0800 |
|---|---|---|
| committer | Randall Meyer <[email protected]> | 2023-02-20 10:28:21 -0800 |
| commit | aba993ed378297f48ff6be18b17c6a963d3fd190 (patch) | |
| tree | c78832e8851c2dc39c4db56fbb3b2469802e9f1f /datalogger/logger.go | |
| parent | e0305ad041549f5f7ff90baa9cae58cf88a9c346 (diff) | |
lint/deprecation cleanup
Diffstat (limited to 'datalogger/logger.go')
| -rw-r--r-- | datalogger/logger.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/datalogger/logger.go b/datalogger/logger.go index 249a059..1f9c2d6 100644 --- a/datalogger/logger.go +++ b/datalogger/logger.go @@ -112,13 +112,13 @@ func (logger *CSVDataLogger[T]) Export() bool { visibleFields := reflect.VisibleFields(reflect.TypeOf((*T)(nil)).Elem()) for i, v := range visibleFields { description, success := v.Tag.Lookup("Description") - columnName := fmt.Sprintf("%s", v.Name) + columnName := v.Name if success { if description == "[OMIT]" { toOmit = append(toOmit, i) continue } - columnName = fmt.Sprintf("%s", description) + columnName = description } logger.destination.Write([]byte(fmt.Sprintf("%s, ", columnName))) } |
