From a9afc2d28f1aa74d5c7add50c0e02df1941ab894 Mon Sep 17 00:00:00 2001 From: xushiwei Date: Wed, 17 Jan 2024 09:45:58 +0800 Subject: [PATCH] rm Apper --- classfile.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/classfile.go b/classfile.go index 19d2ba0..b32649e 100644 --- a/classfile.go +++ b/classfile.go @@ -26,10 +26,6 @@ const ( GopPackage = true ) -type Apper interface { - initApp() -} - type App struct { *Engine } @@ -85,7 +81,7 @@ func (p App) Run__1(addr string, mws ...func(h http.Handler) http.Handler) { } // Gopt_App_Main is required by Go+ compiler as the entry of a YAP project. -func Gopt_App_Main(app Apper) { +func Gopt_App_Main(app interface{ initApp() }) { app.initApp() app.(interface{ MainEntry() }).MainEntry() }