服务增加不同架构的编译代码,区分windows与linux的相同方法进行交叉编译
This commit is contained in:
27
service/os.go
Normal file
27
service/os.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user