Skip to content

Commit 8d0d29d

Browse files
thiskevinwangbflad
andauthored
docs: add import statements to default-values.mdx (#851)
Co-authored-by: Brian Flad <[email protected]>
1 parent a8189f1 commit 8d0d29d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

website/docs/plugin/framework/migrating/attributes-blocks/default-values.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ func resourceExample() *schema.Resource {
4242
In the Framework, you set default values with the `Default` field on your attribute's definition.
4343
4444
```go
45+
import (
46+
"context"
47+
48+
"github.com/hashicorp/terraform-plugin-framework/resource"
49+
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
50+
"github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault"
51+
)
52+
4553
func (r *resourceExample) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {
4654
resp.Schema = schema.Schema{
4755
/* ... */

0 commit comments

Comments
 (0)