utils

package
v0.0.0-...-bea810b Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(s []string, e string) bool

func CopyFile

func CopyFile(sourceFilename string, destFilename string) error

func DirExists

func DirExists(name string) (bool, error)

func Distinct

func Distinct(s1, s2 []string) (distinct []string)

Distinct returns elements in s1, not in s2

func FileExists

func FileExists(name string) (bool, error)

func FindClickHouseProcesses

func FindClickHouseProcesses() ([]gosigar.ProcArgs, error)

func FindConfigsFromClickHouseProcesses

func FindConfigsFromClickHouseProcesses() ([]string, error)

func IndexOf

func IndexOf(s []string, e string) int

func Intersection

func Intersection(s1, s2 []string) (inter []string)

Intersection of elements in s1 and s2

func ListFilesInDirectory

func ListFilesInDirectory(directory string, patterns []string) ([]string, []error)

func MakeTimestamp

func MakeTimestamp() int64

func Remove

func Remove(slice []interface{}, s int) []interface{}

func Unique

func Unique(s1 []string) (unique []string)

Unique func Unique(s1 []string) (unique []string) returns unique elements in s1

Types

This section is empty.

Jump to

Keyboard shortcuts

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