|
|
@@ -19,6 +19,8 @@ func init() {
|
|
|
|
|
|
global_value.AppVersion = AppVersion
|
|
|
|
|
|
+ global_value.ExtEnCode = ExtEnCode
|
|
|
+
|
|
|
if my_util.OSCheck() == false {
|
|
|
log_helper.GetLogger().Panicln(`You should search runtime.GOOS in the project, Implement unimplemented function`)
|
|
|
}
|
|
|
@@ -87,6 +89,9 @@ func readCustomPortFile() int {
|
|
|
*/
|
|
|
var AppVersion = "unknow"
|
|
|
|
|
|
+// go build -ldflags="-X main.AppVersion=aabb -X main.ExtEnCode=ccdd" .
|
|
|
+var ExtEnCode = "abcdefg1234567890"
|
|
|
+
|
|
|
const (
|
|
|
defPort = 19035
|
|
|
customPort = "CustomPort"
|