utils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(url string) ([]byte, error)

Get Base implementation of request

func IsOldLinuxVersion

func IsOldLinuxVersion(version string) bool

func IsOldWindowsVersion

func IsOldWindowsVersion(version string) bool

func Unzip

func Unzip(folder string, data []byte) error

func VerifyChecksum

func VerifyChecksum(k256 string, s256 string, data []byte) error

Types

type BuildData

type BuildData struct {
	Path      string `json:"path"`
	Name      string `json:"name"`
	Version   string `json:"version"`
	Keccak256 string `json:"keccak256"`
	Sha256    string `json:"sha256"`
}

type ResponseData

type ResponseData struct {
	Releases map[string]string `json:"releases"`
	Builds   []*BuildData      `json:"builds"`
}

Jump to

Keyboard shortcuts

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