Documentation ¶
Index ¶
Constants ¶
View Source
const ( Windows = "windows" Linux = "linux" OSX = "darwin" )
os installer type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { GameVersion string `json:"minecraft_version"` Forge ConfigForge `json:"forge"` Server ConfigServer `json:"server"` FTP ConfigFTP `json:"ftp"` }
Config json to installer
type ConfigFTP ¶
type ConfigFTP struct { URL string `json:"url"` Login string `json:"login"` Password string `json:"password"` }
ConfigFTP json
type ConfigForge ¶
ConfigForge json
type ConfigServer ¶
ConfigServer json
type Installer ¶
type Installer interface { Close() error UpdateLocation(location string) error MinecraftPath() Path ForgePath() Path Install() error ForgeVersion() string GameVersion() string }
Installer minecraft mods
func NewWithConfig ¶
NewWithConfig statement of installer. Need to call the Close method
type LauncherProfile ¶
LauncherProfile json data
Click to show internal directories.
Click to hide internal directories.