adoptium_jdk_go

package module
v0.0.0-...-0b2cfe7 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

README

adoptium-jdk

Downloads the URL of the latest Adoptium JDK, using the Adoptium API.

You can use commands like the following to download the latest Adoptium JDK, assuming adoptium-jdk is in your PATH:

curl -LO $(adoptium-jdk)
curl -LO $(adoptium-jdk -lts)
curl -LO $(adoptium-jdk -lts -jv)  # print the version only
curl -LO $(adoptium-jdk -release 11)
curl -LO $(adoptium-jdk -os linux -arch x64 -release 18)

The program will use your current OS and architecture as its defaults.

You can type adoptium-jdk -h for help/usage information, including information about other options.

The scripts directory has scripts that use adoptium-jdk and upgrade the JDK. You can use these scripts as a starting point to upgrade your own setup.

Build

Use go build to build.

Documentation

Index

Constants

View Source
const ProgramVersion = "0.1.1"

Variables

This section is empty.

Functions

func ApiListReleases

func ApiListReleases() string

Types

type ProgramArgs

type ProgramArgs struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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