runtime: Fix gofmt issues

It seems that bumping the version of golang and golangci-lint new format
changes are required.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio
2022-11-17 13:52:54 +01:00
parent 16b8375095
commit d94718fb30
21 changed files with 81 additions and 82 deletions

View File

@@ -15,9 +15,9 @@ import (
// checkValid determines if the specified string is valid or not.
// It looks for:
//
// - Invalid (unprintable) characters.
// - Standard golang error strings added by the formatting functions into the
// resulting strings when issues are detected.
// - Invalid (unprintable) characters.
// - Standard golang error strings added by the formatting functions into the
// resulting strings when issues are detected.
func checkValid(value string) error {
if value == "" {
return nil

View File

@@ -45,12 +45,11 @@ const logEntryFormatVersion = "0.0.2"
//
// Notes:
//
// - An anonymous field is not used to distinguish between the two
// categories of fields because that extra layer becomes visible when the
// struct is converted to various formats (specifically CSV, text and YAML).
// - An anonymous field is not used to distinguish between the two
// categories of fields because that extra layer becomes visible when the
// struct is converted to various formats (specifically CSV, text and YAML).
//
// - XXX: If you change this struct, update logEntryFormatVersion!
//
type LogEntry struct {
// Used to store additional (non-standard) fields
Data MapSS