Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BinDir = func() string { ex, err := os.Executable() Must(err) return filepath.Clean(filepath.Dir(ex) + "/") }()
BinDir returns the path of the executable
Functions ¶
func FormatLevel ¶
FormatLevel formats the raw level of a character to their actual level
func FormatName ¶
FormatName formats the raw name of a character in the form "example_name" to "Example Name"
func FormatWorld ¶
FormatWorld formats the raw world string of a player to their actual world name
func GenerateCA ¶
GenerateCA generates a new key pair and saves at the given certPath and keyPath
func GetOutboundIP ¶
func GetOutboundIP() string
GetOutboundIP returns preferred outbound IP of the machine
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.