"refactor(vscode): 移除项目中的VSCode特定GOROOT配置"

This commit is contained in:
1
2025-07-25 06:22:16 +00:00
parent 7a0d6d9556
commit 43dc9394c5
7 changed files with 68 additions and 67 deletions

View File

@@ -1,7 +1,7 @@
package entity
import (
"blazing/cool"
"context"
"fmt"
"sync"
@@ -54,16 +54,7 @@ func (p *Player) SendPack(b []byte) error {
return err
}
func ConutPlayer() int {
count := 0
cool.Mainplayer.Range(func(key, value interface{}) bool {
count++
return true // 继续遍历
})
return count
//fmt.Println("元素数量:", count) // 输出: 3
}
// IsLoggedIn 检查是否已登录
func (lw *Player) IsLoggedIn() bool {