Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
app.go 340 Bytes
Copy Edit Raw Blame History
Kevin2li authored 2023-07-18 15:06 . refactor
package main
import (
"context"
)
// App struct
type App struct {
ctx context.Context
}
// NewApp creates a new App application struct
func NewApp() *App {
return &App{}
}
// startup is called when the app starts. The context is saved
// so we can call the runtime methods
func (a *App) startup(ctx context.Context) {
a.ctx = ctx
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化