From 9dfd98f9a848c81f3a0a760b6704699093fd6254 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Wed, 24 Nov 2021 13:26:38 +0800 Subject: [PATCH] refact: move engine to new mod --- {netutil => engine}/engine.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename {netutil => engine}/engine.go (97%) diff --git a/netutil/engine.go b/engine/engine.go similarity index 97% rename from netutil/engine.go rename to engine/engine.go index fe998f2..ac11145 100644 --- a/netutil/engine.go +++ b/engine/engine.go @@ -1,4 +1,4 @@ -package netutil +package engine import ( "bytes" @@ -13,7 +13,7 @@ type Engine struct { Template *template.Template } -func NewEngine(name string) *Engine { +func New(name string) *Engine { Ename := "E" + name if Ename == "E" { Ename = "Engine"