Documentation ¶
Index ¶
- Constants
- Variables
- func DiffStrings(a, b []string) []string
- func GenerateULID() (string, error)
- func GetCurrentFuncName() string
- func InterfaceSlice(slice []string) []interface{}
- func MergeStrings(a, b []string) []string
- func RandomString(strlen int) string
- func StringSliceToMap(values []string) (map[string]string, error)
- type FileWatcher
Constants ¶
View Source
const TestRandomString = "pQ8GqKTHv8vgWrtW"
TestRandomString random string for test
Variables ¶
View Source
var TestMode = false
TestMode test mode
Functions ¶
func DiffStrings ¶
DiffStrings returns the elements in a that aren't in b
func GenerateULID ¶
GenerateULID generate Unique Lexicographically Sortable Identifier
func GetCurrentFuncName ¶
func GetCurrentFuncName() string
GetCurrentFuncName get current function name
func InterfaceSlice ¶
func InterfaceSlice(slice []string) []interface{}
InterfaceSlice helper function to convert []string to []interface{} see https://github.com/golang/go/wiki/InterfaceSlice
Types ¶
type FileWatcher ¶
type FileWatcher struct {
// contains filtered or unexported fields
}
FileWatcher - watches a file on a set interval, and preforms de-duplication of write events such that only 1 write event is reported even if multiple writes happened during the specified duration.
Click to show internal directories.
Click to hide internal directories.