common

package
v0.0.0-...-dd5720f Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commit string = ""

Commit returns commit info for build

Thinking outputs a spinner to indicate that we're thinking about something

View Source
var Version string = ""

Version returns current version info

Functions

func DeleteFromSlice

func DeleteFromSlice(slice []string, selector string) []string

DeleteFromSlice removes the supplied single element from a given slice

func FileExists

func FileExists(fs afero.Fs, filename string) bool

FileExists returns whether or not the given file exists in the OS

func FindInSlice

func FindInSlice(slice []string, element string) (int, bool)

FindInSlice returns whether or not the given slice contains the supplied element and, if so, returns its index

Types

This section is empty.

Jump to

Keyboard shortcuts

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