Skip to content

Commit 57f28bb

Browse files
authored
all: Add package level Go documentation and fix int64validator package naming in source files (#25)
Reference: https://pkg.go.dev/github.com/hashicorp/terraform-plugin-framework-validators This will improve the usability of browsing the Go documentation.
1 parent a5b41c0 commit 57f28bb

File tree

10 files changed

+15
-6
lines changed

10 files changed

+15
-6
lines changed

float64validator/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package float64validator provides validators for types.Float64 attributes.
2+
package float64validator

int64validator/at_least.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package validate
1+
package int64validator
22

33
import (
44
"context"

int64validator/at_least_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package validate
1+
package int64validator
22

33
import (
44
"context"

int64validator/at_most.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package validate
1+
package int64validator
22

33
import (
44
"context"

int64validator/at_most_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package validate
1+
package int64validator
22

33
import (
44
"context"

int64validator/between.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package validate
1+
package int64validator
22

33
import (
44
"context"

int64validator/between_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package validate
1+
package int64validator
22

33
import (
44
"context"

int64validator/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package int64validator provides validators for types.Int64 attributes.
2+
package int64validator

stringvalidator/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package stringvalidator provides validators for types.String attributes.
2+
package stringvalidator

validatordiag/doc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Package validatordiag provides diagnostics helpers for validator
2+
// implementations.
3+
package validatordiag

0 commit comments

Comments
 (0)