Skip to content

Commit

Permalink
docs: add import statements to default-values.mdx (#851)
Browse files Browse the repository at this point in the history
Co-authored-by: Brian Flad <bflad417@gmail.com>
  • Loading branch information
thiskevinwang and bflad committed Feb 21, 2024
1 parent a8189f1 commit 8d0d29d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ func resourceExample() *schema.Resource {
In the Framework, you set default values with the `Default` field on your attribute's definition.
```go
import (
"context"

"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault"
)

func (r *resourceExample) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {
resp.Schema = schema.Schema{
/* ... */
Expand Down

0 comments on commit 8d0d29d

Please sign in to comment.