util

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2016 License: LGPL-2.1 Imports: 16 Imported by: 1

Documentation

Overview

*

  • Minecraft Forge
  • Copyright (c) 2016. *
  • This library is free software; you can redistribute it and/or
  • modify it under the terms of the GNU Lesser General Public
  • License as published by the Free Software Foundation version 2.1
  • of the License. *
  • This library is distributed in the hope that it will be useful,
  • but WITHOUT ANY WARRANTY; without even the implied warranty of
  • MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  • Lesser General Public License for more details. *
  • You should have received a copy of the GNU Lesser General Public
  • License along with this library; if not, write to the Free Software
  • Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

*

  • Minecraft Forge
  • Copyright (c) 2016. *
  • This library is free software; you can redistribute it and/or
  • modify it under the terms of the GNU Lesser General Public
  • License as published by the Free Software Foundation version 2.1
  • of the License. *
  • This library is distributed in the hope that it will be useful,
  • but WITHOUT ANY WARRANTY; without even the implied warranty of
  • MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  • Lesser General Public License for more details. *
  • You should have received a copy of the GNU Lesser General Public
  • License along with this library; if not, write to the Free Software
  • Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

*

  • Minecraft Forge
  • Copyright (c) 2016. *
  • This library is free software; you can redistribute it and/or
  • modify it under the terms of the GNU Lesser General Public
  • License as published by the Free Software Foundation version 2.1
  • of the License. *
  • This library is distributed in the hope that it will be useful,
  • but WITHOUT ANY WARRANTY; without even the implied warranty of
  • MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  • Lesser General Public License for more details. *
  • You should have received a copy of the GNU Lesser General Public
  • License along with this library; if not, write to the Free Software
  • Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

*

  • Minecraft Forge
  • Copyright (c) 2016. *
  • This library is free software; you can redistribute it and/or
  • modify it under the terms of the GNU Lesser General Public
  • License as published by the Free Software Foundation version 2.1
  • of the License. *
  • This library is distributed in the hope that it will be useful,
  • but WITHOUT ANY WARRANTY; without even the implied warranty of
  • MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  • Lesser General Public License for more details. *
  • You should have received a copy of the GNU Lesser General Public
  • License along with this library; if not, write to the Free Software
  • Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

*

  • Minecraft Forge
  • Copyright (c) 2016. *
  • This library is free software; you can redistribute it and/or
  • modify it under the terms of the GNU Lesser General Public
  • License as published by the Free Software Foundation version 2.1
  • of the License. *
  • This library is distributed in the hope that it will be useful,
  • but WITHOUT ANY WARRANTY; without even the implied warranty of
  • MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  • Lesser General Public License for more details. *
  • You should have received a copy of the GNU Lesser General Public
  • License along with this library; if not, write to the Free Software
  • Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForLauncher

func CheckForLauncher()

func DecompJRE

func DecompJRE(version string)

func DecompLauncher

func DecompLauncher()

func DecompLzma

func DecompLzma(arcive, target string)

func DownloadFromUrl

func DownloadFromUrl(url string, path string)

func GetJREVersion

func GetJREVersion() string

func GetJreInfo

func GetJreInfo() (string, string, string, string)

func GetLauncherUrl

func GetLauncherUrl() string

func GetThisArch

func GetThisArch() string

func GetThisPlatform

func GetThisPlatform() string

func IsJavaInstalled

func IsJavaInstalled() bool

func IsJavaVersionValid

func IsJavaVersionValid() bool

func IsValidArch

func IsValidArch() bool

func IsValidPlatFrom

func IsValidPlatFrom() bool

func JreLauncher

func JreLauncher()

func LaunchWithMojangJava

func LaunchWithMojangJava()

func LaunchWithSysJava

func LaunchWithSysJava()

func StringFromWebJson

func StringFromWebJson(url string) string

Types

type LauncherJson

type LauncherJson struct {
	Java struct {
		Lzma struct {
			Sha1 string `json:"sha1"`
			URL  string `json:"url"`
		} `json:"lzma"`
		Sha1 string `json:"sha1"`
	} `json:"java"`
	Osx struct {
		Arch64 struct {
			Jdk struct {
				Sha1    string `json:"sha1"`
				URL     string `json:"url"`
				Version string `json:"version"`
			} `json:"jdk"`
			Jre struct {
				Sha1    string `json:"sha1"`
				URL     string `json:"url"`
				Version string `json:"version"`
			} `json:"jre"`
		} `json:"64"`
		Apphash      string `json:"apphash"`
		Applink      string `json:"applink"`
		Downloadhash string `json:"downloadhash"`
	} `json:"osx"`
	Windows struct {
		Arch32 struct {
			Jdk struct {
				Sha1    string `json:"sha1"`
				URL     string `json:"url"`
				Version string `json:"version"`
			} `json:"jdk"`
			Jre struct {
				Sha1    string `json:"sha1"`
				URL     string `json:"url"`
				Version string `json:"version"`
			} `json:"jre"`
		} `json:"32"`
		Arch64 struct {
			Jdk struct {
				Sha1    string `json:"sha1"`
				URL     string `json:"url"`
				Version string `json:"version"`
			} `json:"jdk"`
			Jre struct {
				Sha1    string `json:"sha1"`
				URL     string `json:"url"`
				Version string `json:"version"`
			} `json:"jre"`
		} `json:"64"`
		Apphash string `json:"apphash"`
		Applink string `json:"applink"`
	} `json:"windows"`
}

Jump to

Keyboard shortcuts

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