Registry / networking / iverly-go-mcping

iverly-go-mcping

JSON →
library1.0.1gogounverified

A Go library for pinging Minecraft servers and retrieving server status information.

go get github.com/iverly/go-mcping
INSTALL
IMPORT
SIG · IVERLY-GO-MCPING
I
iverly-go-mcping
networkinggov1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mcping
github.com/iverly/go-mcping

Ping a Minecraft server and get player count.

package main import ( "fmt" "github.com/iverly/go-mcping" ) func main() { resp, err := mcping.Ping("example.com", 25565) if err != nil { panic(err) } fmt.Printf("Players online: %d\n", resp.Players.Online) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
iverly-go-mcping — go get iverly-go-mcping · libregistry