utils

package
v0.0.0-...-b369aa6 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterMap

func FilterMap(ms map[string][]string, test func(string) bool) (ret map[string][]string)

FilterMap items from array based on test functions

func GetFileSHA1

func GetFileSHA1(filePath string) (string, error)

GetFileSHA1 returns a files SHA1

func IsLetter

func IsLetter(s string) bool

IsLetter checks if string is letter

func StringInSlice

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

StringInSlice checks for string in slice

func StringSlice

func StringSlice(strs []string) []*string

StringSlice makes a slice str to str pointers

func VerifyArgsOrRun

func VerifyArgsOrRun(args []string, equalTo int, call ...func())

VerifyArgsOrRun will check args length then call first defined function or 2nd to handle error

Types

This section is empty.

Jump to

Keyboard shortcuts

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