From 7616c8cdc9560e9be3b4c0d91e51b0d15f9ae96b Mon Sep 17 00:00:00 2001 From: what Date: Thu, 20 Jul 2023 15:04:53 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E5=91=BD=E5=90=8D=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- engine/engine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/engine.go b/engine/engine.go index 70d30ae..9b072bb 100644 --- a/engine/engine.go +++ b/engine/engine.go @@ -203,6 +203,6 @@ func (this *Engine[T]) Execute(data T) error { return nil } -func NewEngine[T any](table string, g contracts.GlobalParams, relations ...string) *Engine[T] { +func New[T any](table string, g contracts.GlobalParams, relations ...string) *Engine[T] { return &Engine[T]{code: table, g: g, relations: relations} }