energy/cef/cef-def.go
杨红岩 d9f14c6a46 修改注释文档
代码授权注释修改
2023-02-19 23:21:47 +08:00

40 lines
805 B
Go

//----------------------------------------
//
// Copyright © yanghy. All Rights Reserved.
//
// Licensed under Apache License Version 2.0, January 2004
//
// https://www.apache.org/licenses/LICENSE-2.0
//
//----------------------------------------
package cef
import (
"github.com/energye/energy/common/imports"
"github.com/energye/golcl/lcl/api"
)
var (
cef_version string
lib_build_version string
)
// cef version
func CEFVersion() string {
if cef_version == "" {
r1, _, _ := imports.Proc(internale_CEFVersion).Call()
cef_version = api.GoStr(r1)
}
return cef_version
}
// lib build version
func LibBuildVersion() string {
if lib_build_version == "" {
r1, _, _ := imports.Proc(internale_LibBuildVersion).Call()
lib_build_version = api.GoStr(r1)
}
return lib_build_version
}