utils

package
v0.0.0-...-b190a22 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatFileSize

func FormatFileSize(memoryMB int64) string

func FormatLargeInteger

func FormatLargeInteger(value int64) string

FormatLargeInteger formats a large integer

func GetAPIURL

func GetAPIURL(username, repository string) string

GetAPIURL returns the API URL for a username and repository

func GetReleases

func GetReleases(username, repository string) ([]config.Release, error)

GetReleases returns release details

func GetRepoDetails

func GetRepoDetails(username, repository string) (config.Repository, error)

GetRepoDetails returns repository details

func GetRepositoryURL

func GetRepositoryURL(username, repository string) string

GetRepositoryURL returns the GitHub repository URL

func HttpGETRequest

func HttpGETRequest(URL string) ([]byte, int, error)

HttpGETRequest issues a GET request and returns the contents

Types

This section is empty.

Jump to

Keyboard shortcuts

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