refact: move engine to new mod

master
Evan Chen 2021-11-24 13:26:38 +08:00
parent f03173b8a9
commit 9dfd98f9a8
1 changed files with 2 additions and 2 deletions

View File

@ -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"