summaryrefslogtreecommitdiff
path: root/app/domain/entity.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-24 15:38:36 -0600
committermo khan <mo@mokhan.ca>2025-07-24 15:38:36 -0600
commit7fb5255aafc435f5b47725716963f3aebfb9feb2 (patch)
tree2779faa2ce03296013722086019262bbc390cadf /app/domain/entity.go
parent5f04ff8b3051d176dca586357ed68482d62b8eef (diff)
test: Validate Entity ObjectReference
Diffstat (limited to 'app/domain/entity.go')
-rw-r--r--app/domain/entity.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/app/domain/entity.go b/app/domain/entity.go
index b2c2166..0377c51 100644
--- a/app/domain/entity.go
+++ b/app/domain/entity.go
@@ -1,12 +1,6 @@
package domain
-import "github.com/xlgmokha/x/pkg/x"
-
type Entity interface {
Identifiable
Validate() error
}
-
-func New[T Entity](options ...x.Configure[T]) T {
- return x.New[T](x.Map[x.Configure[T], x.Option[T]](options, x.With[T])...)
-}