mcdeploy

package
v0.0.0-...-e8ecf89 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2014 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 CreateFile(filename string, contents string)

func DownloadPlugin

func DownloadPlugin(size int, plugin_name string)

func GenerateServer

func GenerateServer()

func GetDownload

func GetDownload(url string, file_name string)

func GetFileNameFromURL

func GetFileNameFromURL(url string) string

func GetJSON

func GetJSON(url string) []uint8

func GetOS

func GetOS() string

func IterateOverPluginInfo

func IterateOverPluginInfo(iterator []string, output func(i int))

The "i" variable is for the function to access the iterator

func NewBukkitServer

func NewBukkitServer()

func NewCLI

func NewCLI()

func NewQuestion

func NewQuestion(question string, action func(questionoutput string) string) string

func ParseJSON

func ParseJSON(body []uint8, data Plugin) ([]string, []string, []string)

func SearchBySlug

func SearchBySlug(size int, plugin_name string) []string

func SearchPlugins

func SearchPlugins(size int, plugin_name string)

Types

type Plugin

type Plugin []struct {
	Description string `json:"description"`

	Plugin_Name string `json:"plugin_name"`

	Slug string `json:"slug"`
}

Jump to

Keyboard shortcuts

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