2 Star 4 Fork 0

岩湖上的野草/wails-vue-js-3-template

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
app.tmpl.go 789 Bytes
一键复制 编辑 原始数据 按行查看 历史
Eric-WangHanming 提交于 2022-03-23 20:30 +08:00 . 支持macOS
package main
import (
"context"
"fmt"
"runtime"
)
// App struct
type App struct {
ctx context.Context
}
// NewApp creates a new App application struct
func NewApp() *App {
return &App{}
}
// startup is called at application startup
func (a *App) startup(ctx context.Context) {
// Perform your setup here
a.ctx = ctx
}
// domReady is called after the front-end dom has been loaded
func (a App) domReady(ctx context.Context) {
// Add your action here
}
// shutdown is called at application termination
func (a *App) shutdown(ctx context.Context) {
// Perform your teardown here
}
// GetMsg returns a greeting for the given name
func (a *App) GetMsg(name string) string {
return fmt.Sprintf("Hello %s!", name)
}
func (a *App) PullPlatform() string {
return runtime.GOOS
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/rocklakegrass/wails-vue-js-3-template.git
git@gitee.com:rocklakegrass/wails-vue-js-3-template.git
rocklakegrass
wails-vue-js-3-template
wails-vue-js-3-template
master

搜索帮助