🎨 build version

This commit is contained in:
naiba
2020-10-29 11:20:32 +08:00
parent 652ecc248b
commit fc1e15bf31
3 changed files with 9 additions and 4 deletions

View File

@@ -28,6 +28,12 @@ var ServerLock sync.RWMutex
// Version ..
var Version = "debug"
func init() {
if len(Version) > 7 {
Version = Version[:7]
}
}
// SendCommand ..
func SendCommand(cmd *pb.Command) {
ServerLock.RLock()