Skip to content

Commit 620785b

Browse files
committed
refactor(runtime): reorder fields in component registration and config structs
- Moved ConfigResolver field to top of RegistrationOptions struct - Moved Tags field to bottom of ComponentConfig struct - Maintained same struct field types and functionality - Improved field organization for better readability - No functional behavior changes introduced
1 parent 0257361 commit 620785b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

contracts/component/component.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ type ConfigEntry struct {
111111
type RequirementResolver func(ctx context.Context, h Handle, purpose string) (any, error)
112112

113113
type RegistrationOptions struct {
114-
ConfigResolver ConfigResolver
115114
Scopes []Scope
116-
Priority Priority
117115
Tag string
116+
Priority Priority
118117
DefaultEntries []string
118+
ConfigResolver ConfigResolver
119119
RequirementResolver RequirementResolver
120120
}
121121

@@ -128,8 +128,8 @@ type LoadOptions struct {
128128
Category Category
129129
Scope Scope
130130
Name string
131-
Resolver ConfigResolver
132131
Tags []string
132+
Resolver ConfigResolver
133133
}
134134

135135
type LoadOption func(*LoadOptions)

0 commit comments

Comments
 (0)