We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83e0dc7 commit beb36adCopy full SHA for beb36ad
tfprotov5/internal/diag/diagnostics.go
@@ -31,10 +31,9 @@ func (d Diagnostics) ErrorCount() int {
31
32
// Log will log every diagnostic:
33
//
34
-// - Error severity at ERROR level
35
-// - Warning severity at WARN level
36
-// - Invalid/Unknown severity at WARN level
37
-//
+// - Error severity at ERROR level
+// - Warning severity at WARN level
+// - Invalid/Unknown severity at WARN level
38
func (d Diagnostics) Log(ctx context.Context) {
39
for _, diagnostic := range d {
40
if diagnostic == nil {
tfprotov5/internal/tf5serverlogging/downstream_request.go
@@ -21,10 +21,9 @@ func DownstreamRequest(ctx context.Context) context.Context {
21
22
// DownstreamResponse generates the following logging:
23
24
-// - TRACE "Received downstream response" log with request duration and
25
-// diagnostic severity counts
26
-// - Per-diagnostic logs
27
+// - TRACE "Received downstream response" log with request duration and
+// diagnostic severity counts
+// - Per-diagnostic logs
28
func DownstreamResponse(ctx context.Context, diagnostics diag.Diagnostics) {
29
responseFields := map[string]interface{}{
30
logging.KeyDiagnosticErrorCount: diagnostics.ErrorCount(),
tfprotov6/internal/diag/diagnostics.go
tfprotov6/internal/tf6serverlogging/downstream_request.go
tftypes/value.go
@@ -260,17 +260,13 @@ func (val Value) Copy() Value {
260
261
// The builtin Value representations are:
262
263
-// * String: string, *string
264
265
-// * Number: *big.Float, int64, *int64, int32, *int32, int16, *int16, int8,
266
-// *int8, int, *int, uint64, *uint64, uint32, *uint32, uint16,
267
-// *uint16, uint8, *uint8, uint, *uint, float64, *float64
268
269
-// * Bool: bool, *bool
270
271
-// * Map and Object: map[string]Value
272
273
-// * Tuple, List, and Set: []Value
+// - String: string, *string
+// - Number: *big.Float, int64, *int64, int32, *int32, int16, *int16, int8,
+// *int8, int, *int, uint64, *uint64, uint32, *uint32, uint16,
+// *uint16, uint8, *uint8, uint, *uint, float64, *float64
+// - Bool: bool, *bool
+// - Map and Object: map[string]Value
+// - Tuple, List, and Set: []Value
274
func NewValue(t Type, val interface{}) Value {
275
v, err := newValue(t, val)
276
if err != nil {
0 commit comments