utils

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package utils contains a number generic of methods that are used throughout the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForUpdate

func CheckForUpdate(currentVersion string) bool

func IsValidSemanticVersion

func IsValidSemanticVersion(v string) bool

func NextVersionIsGreaterThanCurrent added in v0.13.1

func NextVersionIsGreaterThanCurrent(nextVersion, currentVersion string) bool

func SliceContainsString

func SliceContainsString(s []string, str string) bool

Types

type Release

type Release struct {
	Version string `json:"tag_name"`
}

type RepoContext added in v0.12.0

type RepoContext struct {
	Owner string
	Name  string
}

RepoContext is a struct that contains the current repository owner and name.

func GetRepoContext added in v0.12.0

func GetRepoContext() (RepoContext, error)

GetRepoContext returns a new RepoContext struct with the current repository owner and name.

Jump to

Keyboard shortcuts

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