You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
486 B
Go

package config
import (
"errors"
"runtime"
cli "github.com/urfave/cli/v2"
)
type JavaFileItem struct {
FileName string
URL string
Sha256 string
}
type UrlItem struct {
In *JavaFileItem
Expected string
SimpleName string
}
var Url_Items []*UrlItem
func init() {
switch runtime.GOOS {
case "linux":
Url_Items = linux_Url_Items
case "windows":
Url_Items = windows_Url_Items
default:
cli.Exit(errors.New(runtime.GOOS+" OS is not supported"), 1)
}
}