helper

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanZips

func CleanZips(v []string)

func GetFlagsFromType

func GetFlagsFromType(t string) string

Returns flags for a type based on t. Not recommended calling this with user input as it'll deliberatly error out if incorrect.

func ListWithBitFilter

func ListWithBitFilter(original_list []string, filter byte) []string

func MoveBuilt

func MoveBuilt(ver string)

func MoveInitialiser

func MoveInitialiser(vers []string)

func RenameBuilt

func RenameBuilt()

func ReverseList

func ReverseList(list []string) []string

func StringInSlice

func StringInSlice(a string, list []string) bool

Arguably the most useful helper function in this file, allowing checking of strings in a list of strings. Used a lot when validating versions, for example

func Unzip

func Unzip(src string, dest string) ([]string, error)

This function is stolen from https://golangcode.com/unzip-files-in-go/ Unzips the file keeping directory structure

Types

This section is empty.

Jump to

Keyboard shortcuts

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