服务增加不同架构的编译代码,区分windows与linux的相同方法进行交叉编译

This commit is contained in:
ayflying
2025-10-16 18:11:54 +08:00
parent 27fed91922
commit ba3c561c4c
7 changed files with 154 additions and 4 deletions

27
service/os.go Normal file
View File

@@ -0,0 +1,27 @@
// ================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================
package service
type (
IOS interface {
Load(title string, tooltip string, ico string)
}
)
var (
localOS IOS
)
func OS() IOS {
if localOS == nil {
panic("implement not found for interface IOS, forgot register?")
}
return localOS
}
func RegisterOS(i IOS) {
localOS = i
}