refact: move engine to new mod
parent
f03173b8a9
commit
9dfd98f9a8
|
@ -1,4 +1,4 @@
|
||||||
package netutil
|
package engine
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
@ -13,7 +13,7 @@ type Engine struct {
|
||||||
Template *template.Template
|
Template *template.Template
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewEngine(name string) *Engine {
|
func New(name string) *Engine {
|
||||||
Ename := "E" + name
|
Ename := "E" + name
|
||||||
if Ename == "E" {
|
if Ename == "E" {
|
||||||
Ename = "Engine"
|
Ename = "Engine"
|
Loading…
Reference in New Issue