foundation

package
v0.0.0-...-a49e16a Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyJitter

func ApplyJitter(input int) int

ApplyJitter adds +-25% jitter to the input

func DirExists

func DirExists(directory string) bool

DirExists checks if a directory exists

func FileExists

func FileExists(filename string) bool

FileExists checks if a file exists

func IntArrayContains

func IntArrayContains(array []int, search int) bool

IntArrayContains checks if an array contains a specific value

func PathExists

func PathExists(path string) bool

PathExists checks if a directory exists

func StringArrayContains

func StringArrayContains(array []string, search string) bool

StringArrayContains checks if an array contains a specific value

func ToLowerSnakeCase

func ToLowerSnakeCase(in string) string

ToLowerSnakeCase turns any input string into an lower snake cased string

func ToUpperSnakeCase

func ToUpperSnakeCase(in string) string

ToUpperSnakeCase turns any input string into an upper snake cased string

func WatchForFileChanges

func WatchForFileChanges(filePath string, functionOnChange func(fsnotify.Event))

WatchForFileChanges waits for a change to the provided file path and then executes the function

Types

This section is empty.

Jump to

Keyboard shortcuts

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