common

package
v2.4.21 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TimeFormat - clickhouse compatibility time format
	TimeFormat = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

func AddSliceToSliceIfNotExists

func AddSliceToSliceIfNotExists(existsSlice []string, newSlice []string) []string

func AddStringToSliceIfNotExists

func AddStringToSliceIfNotExists(slice []string, newItem string) []string

func SumMapValuesInt

func SumMapValuesInt(m map[string]int) int

func TablePathEncode

func TablePathEncode(str string) string

Types

type EmptyMap

type EmptyMap map[string]struct{}

EmptyMap - like a python set, for less memory usage

Jump to

Keyboard shortcuts

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