Skip to content

Commit ba5d857

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

28 files changed

+54
-54
lines changed

float64validator/at_least.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ func (validator atLeastValidator) Validate(ctx context.Context, request tfsdk.Va
4848
// AtLeast returns an AttributeValidator which ensures that any configured
4949
// attribute value:
5050
//
51-
// - Is a number, which can be represented by a 64-bit floating point.
52-
// - Is exclusively greater than the given minimum.
51+
// - Is a number, which can be represented by a 64-bit floating point.
52+
// - Is exclusively greater than the given minimum.
5353
//
5454
// Null (unconfigured) and unknown (known after apply) values are skipped.
5555
func AtLeast(min float64) tfsdk.AttributeValidator {

float64validator/at_most.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ func (validator atMostValidator) Validate(ctx context.Context, request tfsdk.Val
4747
// AtMost returns an AttributeValidator which ensures that any configured
4848
// attribute value:
4949
//
50-
// - Is a number, which can be represented by a 64-bit floating point.
51-
// - Is exclusively less than the given maximum.
50+
// - Is a number, which can be represented by a 64-bit floating point.
51+
// - Is exclusively less than the given maximum.
5252
//
5353
// Null (unconfigured) and unknown (known after apply) values are skipped.
5454
func AtMost(max float64) tfsdk.AttributeValidator {

float64validator/between.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ func (validator betweenValidator) Validate(ctx context.Context, request tfsdk.Va
4747
// Between returns an AttributeValidator which ensures that any configured
4848
// attribute value:
4949
//
50-
// - Is a number, which can be represented by a 64-bit floating point.
51-
// - Is exclusively greater than the given minimum and less than the given maximum.
50+
// - Is a number, which can be represented by a 64-bit floating point.
51+
// - Is exclusively greater than the given minimum and less than the given maximum.
5252
//
5353
// Null (unconfigured) and unknown (known after apply) values are skipped.
5454
func Between(min, max float64) tfsdk.AttributeValidator {

int64validator/at_least.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ func (validator atLeastValidator) Validate(ctx context.Context, request tfsdk.Va
4747
// AtLeast returns an AttributeValidator which ensures that any configured
4848
// attribute value:
4949
//
50-
// - Is a number, which can be represented by a 64-bit integer.
51-
// - Is exclusively greater than the given minimum.
50+
// - Is a number, which can be represented by a 64-bit integer.
51+
// - Is exclusively greater than the given minimum.
5252
//
5353
// Null (unconfigured) and unknown (known after apply) values are skipped.
5454
func AtLeast(min int64) tfsdk.AttributeValidator {

int64validator/at_least_sum_of.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ func (av atLeastSumOfValidator) Validate(ctx context.Context, request tfsdk.Vali
106106
// AtLeastSumOf returns an AttributeValidator which ensures that any configured
107107
// attribute value:
108108
//
109-
// - Is a number, which can be represented by a 64-bit integer.
110-
// - Is at least the sum of the attributes retrieved via the given path expression(s).
109+
// - Is a number, which can be represented by a 64-bit integer.
110+
// - Is at least the sum of the attributes retrieved via the given path expression(s).
111111
//
112112
// Null (unconfigured) and unknown (known after apply) values are skipped.
113113
func AtLeastSumOf(attributesToSumPathExpressions ...path.Expression) tfsdk.AttributeValidator {

int64validator/at_most.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ func (validator atMostValidator) Validate(ctx context.Context, request tfsdk.Val
4747
// AtMost returns an AttributeValidator which ensures that any configured
4848
// attribute value:
4949
//
50-
// - Is a number, which can be represented by a 64-bit integer.
51-
// - Is exclusively less than the given maximum.
50+
// - Is a number, which can be represented by a 64-bit integer.
51+
// - Is exclusively less than the given maximum.
5252
//
5353
// Null (unconfigured) and unknown (known after apply) values are skipped.
5454
func AtMost(max int64) tfsdk.AttributeValidator {

int64validator/at_most_sum_of.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ func (av atMostSumOfValidator) Validate(ctx context.Context, request tfsdk.Valid
106106
// AtMostSumOf returns an AttributeValidator which ensures that any configured
107107
// attribute value:
108108
//
109-
// - Is a number, which can be represented by a 64-bit integer.
110-
// - Is at most the sum of the given attributes retrieved via the given path expression(s).
109+
// - Is a number, which can be represented by a 64-bit integer.
110+
// - Is at most the sum of the given attributes retrieved via the given path expression(s).
111111
//
112112
// Null (unconfigured) and unknown (known after apply) values are skipped.
113113
func AtMostSumOf(attributesToSumPathExpressions ...path.Expression) tfsdk.AttributeValidator {

int64validator/between.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ func (validator betweenValidator) Validate(ctx context.Context, request tfsdk.Va
4747
// Between returns an AttributeValidator which ensures that any configured
4848
// attribute value:
4949
//
50-
// - Is a number, which can be represented by a 64-bit integer.
51-
// - Is exclusively greater than the given minimum and less than the given maximum.
50+
// - Is a number, which can be represented by a 64-bit integer.
51+
// - Is exclusively greater than the given minimum and less than the given maximum.
5252
//
5353
// Null (unconfigured) and unknown (known after apply) values are skipped.
5454
func Between(min, max int64) tfsdk.AttributeValidator {

int64validator/equal_to_sum_of.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ func (av equalToSumOfValidator) Validate(ctx context.Context, request tfsdk.Vali
106106
// EqualToSumOf returns an AttributeValidator which ensures that any configured
107107
// attribute value:
108108
//
109-
// - Is a number, which can be represented by a 64-bit integer.
110-
// - Is equal to the sum of the given attributes retrieved via the given path expression(s).
109+
// - Is a number, which can be represented by a 64-bit integer.
110+
// - Is equal to the sum of the given attributes retrieved via the given path expression(s).
111111
//
112112
// Null (unconfigured) and unknown (known after apply) values are skipped.
113113
func EqualToSumOf(attributesToSumPathExpressions ...path.Expression) tfsdk.AttributeValidator {

listvalidator/size_at_least.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ func (v sizeAtLeastValidator) Validate(ctx context.Context, req tfsdk.ValidateAt
4646
// SizeAtLeast returns an AttributeValidator which ensures that any configured
4747
// attribute value:
4848
//
49-
// - Is a List.
50-
// - Contains at least min elements.
49+
// - Is a List.
50+
// - Contains at least min elements.
5151
//
5252
// Null (unconfigured) and unknown (known after apply) values are skipped.
5353
func SizeAtLeast(min int) tfsdk.AttributeValidator {

0 commit comments

Comments
 (0)