fix bugs related to vendoring
This commit is contained in:
parent
1bd5ed6df6
commit
775131aa49
2 changed files with 218 additions and 0 deletions
16
scratch
Normal file
16
scratch
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
client, err := a2s.New("127.0.0.1", 27016)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
client.SetBufferSize(2048)
|
||||
client.SetDeadlineTimeout(3)
|
||||
|
||||
defer client.Close()
|
||||
|
||||
players,err := client.GetPlayers()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
} else {
|
||||
fmt.Printf("%+v\n", players)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue