Skip to content

Commit

Permalink
Merge pull request #19 from xushiwei/app
Browse files Browse the repository at this point in the history
rm Apper
  • Loading branch information
xushiwei authored Jan 17, 2024
2 parents b956064 + a9afc2d commit 81886e5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions classfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ const (
GopPackage = true
)

type Apper interface {
initApp()
}

type App struct {
*Engine
}
Expand Down Expand Up @@ -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()
}
Expand Down

0 comments on commit 81886e5

Please sign in to comment.