utils

package
v0.0.0-...-1afd41f Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString

func ContainsString(str string, slice []string) bool

Function to check if a string is in a slice of strings. Takes in a string and slice of strings, returns t/f if string is within the slice.

func ExtractUniqueStrings

func ExtractUniqueStrings(array [][]string) []string

Function ExtractUniqueStrings find unique strings from 2D string array. Takes in a 2D [][]string array and returns a slice of unique strings. Output order can vary between runs due to the usage of a map.

func ZipDir

func ZipDir(source string, target string) error

create zip file from directory TEST: add tests

Types

This section is empty.

Jump to

Keyboard shortcuts

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