Skip to content

Commit beb36ad

Browse files
authored
all: Run Go 1.19 fmt (#217)
To prevent issues with the latest `golangci-lint` in CI.
1 parent 83e0dc7 commit beb36ad

File tree

5 files changed

+19
-27
lines changed

5 files changed

+19
-27
lines changed

tfprotov5/internal/diag/diagnostics.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ func (d Diagnostics) ErrorCount() int {
3131

3232
// Log will log every diagnostic:
3333
//
34-
// - Error severity at ERROR level
35-
// - Warning severity at WARN level
36-
// - Invalid/Unknown severity at WARN level
37-
//
34+
// - Error severity at ERROR level
35+
// - Warning severity at WARN level
36+
// - Invalid/Unknown severity at WARN level
3837
func (d Diagnostics) Log(ctx context.Context) {
3938
for _, diagnostic := range d {
4039
if diagnostic == nil {

tfprotov5/internal/tf5serverlogging/downstream_request.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ func DownstreamRequest(ctx context.Context) context.Context {
2121

2222
// DownstreamResponse generates the following logging:
2323
//
24-
// - TRACE "Received downstream response" log with request duration and
25-
// diagnostic severity counts
26-
// - Per-diagnostic logs
27-
//
24+
// - TRACE "Received downstream response" log with request duration and
25+
// diagnostic severity counts
26+
// - Per-diagnostic logs
2827
func DownstreamResponse(ctx context.Context, diagnostics diag.Diagnostics) {
2928
responseFields := map[string]interface{}{
3029
logging.KeyDiagnosticErrorCount: diagnostics.ErrorCount(),

tfprotov6/internal/diag/diagnostics.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ func (d Diagnostics) ErrorCount() int {
3131

3232
// Log will log every diagnostic:
3333
//
34-
// - Error severity at ERROR level
35-
// - Warning severity at WARN level
36-
// - Invalid/Unknown severity at WARN level
37-
//
34+
// - Error severity at ERROR level
35+
// - Warning severity at WARN level
36+
// - Invalid/Unknown severity at WARN level
3837
func (d Diagnostics) Log(ctx context.Context) {
3938
for _, diagnostic := range d {
4039
if diagnostic == nil {

tfprotov6/internal/tf6serverlogging/downstream_request.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ func DownstreamRequest(ctx context.Context) context.Context {
2121

2222
// DownstreamResponse generates the following logging:
2323
//
24-
// - TRACE "Received downstream response" log with request duration and
25-
// diagnostic severity counts
26-
// - Per-diagnostic logs
27-
//
24+
// - TRACE "Received downstream response" log with request duration and
25+
// diagnostic severity counts
26+
// - Per-diagnostic logs
2827
func DownstreamResponse(ctx context.Context, diagnostics diag.Diagnostics) {
2928
responseFields := map[string]interface{}{
3029
logging.KeyDiagnosticErrorCount: diagnostics.ErrorCount(),

tftypes/value.go

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -260,17 +260,13 @@ func (val Value) Copy() Value {
260260
//
261261
// The builtin Value representations are:
262262
//
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
263+
// - String: string, *string
264+
// - Number: *big.Float, int64, *int64, int32, *int32, int16, *int16, int8,
265+
// *int8, int, *int, uint64, *uint64, uint32, *uint32, uint16,
266+
// *uint16, uint8, *uint8, uint, *uint, float64, *float64
267+
// - Bool: bool, *bool
268+
// - Map and Object: map[string]Value
269+
// - Tuple, List, and Set: []Value
274270
func NewValue(t Type, val interface{}) Value {
275271
v, err := newValue(t, val)
276272
if err != nil {

0 commit comments

Comments
 (0)