utils

package
v1.27.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OUTPUT_FORMAT = "2006-01-02T15:04:05.000Z"
)

Variables

This section is empty.

Functions

func ExtractResponseToString

func ExtractResponseToString(res *http.Response) string

func FormatEventDate added in v1.11.0

func FormatEventDate(t time.Time) string

func GetCourseCodesFromArgs

func GetCourseCodesFromArgs(rawArgs []string) []string

func GetExpandedHomeDirectoryPath added in v1.1.3

func GetExpandedHomeDirectoryPath(path string) string

func MotivationalAndStarMessage added in v1.14.0

func MotivationalAndStarMessage()

func SGTfromUTC added in v1.11.0

func SGTfromUTC(t time.Time) (*time.Time, error)

func SetQueryAccessToken

func SetQueryAccessToken(req *http.Request, accessToken string)

func TimestampToJavaScriptISO added in v1.7.0

func TimestampToJavaScriptISO(t time.Time) string

Types

type GithubReleaseInfo added in v1.17.0

type GithubReleaseInfo struct {
	TagName    string `json:"tag_name"`
	CommitHash string `json:"target_commitish"`
}

func GetCavasSyncLatestVersionHash added in v1.17.0

func GetCavasSyncLatestVersionHash() (*GithubReleaseInfo, error)

Jump to

Keyboard shortcuts

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