Documentation ¶
Index ¶
- Constants
- func CreateFile(filename string, contents string)
- func DownloadPlugin(size int, plugin_name string)
- func GenerateServer()
- func GetDownload(url string, file_name string)
- func GetFileNameFromURL(url string) string
- func GetJSON(url string) []uint8
- func GetOS() string
- func IterateOverPluginInfo(iterator []string, output func(i int))
- func NewBukkitServer()
- func NewCLI()
- func NewQuestion(question string, action func(questionoutput string) string) string
- func ParseJSON(body []uint8, data Plugin) ([]string, []string, []string)
- func SearchBySlug(size int, plugin_name string) []string
- func SearchPlugins(size int, plugin_name string)
- type Plugin
Constants ¶
View Source
const Linuxscript = `#!/bin/sh
BINDIR=$(dirname "$(readlink -fn "$0")")
cd "$BINDIR"
java -Xmx1024M -jar craftbukkit.jar -o true`
View Source
const Macscript = `#!/bin/bash
cd "$( dirname "$0" )"
java -Xmx1024M -jar craftbukkit.jar -o true`
View Source
const Windowsscript = `java -Xmx1024M -jar craftbukkit.jar -o true
PAUSE`
Variables ¶
This section is empty.
Functions ¶
func CreateFile ¶
func DownloadPlugin ¶
func GenerateServer ¶
func GenerateServer()
func GetDownload ¶
func GetFileNameFromURL ¶
func IterateOverPluginInfo ¶
The "i" variable is for the function to access the iterator
func NewBukkitServer ¶
func NewBukkitServer()
func NewQuestion ¶
func SearchBySlug ¶
func SearchPlugins ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.