minecraft

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Motd added in v0.2.0

func Motd(slp ping.JSON) string

Motd returns the server Message Of The Day (MOTD) with some formatting.

func Ping

func Ping(hostname string, port int, timeout time.Duration) (ping.JSON, int, error)

Ping returns the server list ping infos (JSON-like object), and latency of a minecraft server.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL