-
Notifications
You must be signed in to change notification settings - Fork 242
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationtechnical-debt
Milestone
Description
SDK version
v2.10.0
Use-cases
This framework generally requires heavy usage of empty interface types (interface{}, []interface{}, map[string]interface{}) when working with helper/schema.ResourceData. This syntax is a little verbose and is not intuitive for newer provider developers or Gophers coming from projects which typically use concrete types.
When Go 1.18 releases early next year, it will include the equivalent of:
type any = interface{}It seems like it would be great to update our code and examples to replace interface{} with any.
Proposal
After Go 1.18 is released:
- Update code examples on https://terraform.io/docs/
- Update code examples on https://learn.hashicorp.com
- Update code in https://github.com/hashicorp/terraform-provider-scaffolding
- Create issues on HashiCorp maintained utility providers (as they may , if they are still using this framework
Since this framework must remain compatible with Go 1.17 until Go 1.19 is released later next year due to our compatibility promises, this codebase should not be updated yet.
References
brettjacobson
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationtechnical-debt