- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ParseInput (0.1 sec)
-
pilot/pkg/config/kube/crd/conversion_test.go
if varr, _, err := ParseInputs(""); len(varr) > 0 || err != nil { t.Errorf(`ParseInput("") => got %v, %v, want nil, nil`, varr, err) } if _, _, err := ParseInputs("a"); err == nil { t.Error(`ParseInput("a") => got no error`) } if _, others, err := ParseInputs("apiVersion: v1\nkind: Pod"); err != nil || len(others) != 1 { t.Errorf(`ParseInput("kind: Pod") => got %v, %v`, others, err) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 18:26:16 UTC 2024 - 4.6K bytes - Viewed (0) -
src/log/slog/doc.go
Pass each subsystem a different Logger with its own group name so that potential duplicates are qualified: logger := slog.Default().With("id", systemID) parserLogger := logger.WithGroup("parser") parseInput(input, parserLogger) When parseInput logs with parserLogger, its keys will be qualified with "parser", so even if it uses the common key "id", the log line will have distinct keys. # Contexts
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 15 14:35:48 UTC 2024 - 12.3K bytes - Viewed (0)