Skip to content

Commit

Permalink
resolver alias
Browse files Browse the repository at this point in the history
  • Loading branch information
RangelReale committed Jul 9, 2023
1 parent c17bb95 commit 473a9be
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
8 changes: 8 additions & 0 deletions resolver/resolver.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package resolver

import (
"github.com/RangelReale/instruct/resolver"
)

// Resolver is the default Resolver.
type Resolver = resolver.Resolver
17 changes: 17 additions & 0 deletions resolver/resolver_value.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package resolver

import (
"github.com/RangelReale/instruct/resolver"
)

// ValueResolver resolves simple types for a Resolver.
// It should NOT handle slices, pointers, or maps.
type ValueResolver resolver.ValueResolver

// TypeValueResolver is a custom type handler for a ValueResolver.
// It should NOT process value using reflection (for performance reasons).
type TypeValueResolver = resolver.TypeValueResolver

// TypeValueResolverReflect is a custom type handler for a ValueResolver.
// It SHOULD process value using reflection.
type TypeValueResolverReflect = resolver.TypeValueResolverReflect

0 comments on commit 473a9be

Please sign in to comment.