common

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MockTimeNow = func() time.Time {
	layout := "2006-01-02 15:04:05"
	str := "2000-01-01 00:00:00"
	t, _ := time.Parse(layout, str)
	return t
}

MockTimeNow mocks time.Now

Functions

func CopyStrings

func CopyStrings(tags []string) []string

CopyStrings makes a copy of a list of strings

func CreateStringBatches

func CreateStringBatches(elements []string, size int) ([][]string, error)

CreateStringBatches batches strings into chunks with specific size

Types

This section is empty.

Jump to

Keyboard shortcuts

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