common

package
v1.2.2-dev.94 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertStringsToInterfaces

func ConvertStringsToInterfaces(stringArray []string) []interface{}

ConvertStringsToInterfaces converts a string array to an interface{} array

func FindCommonStrings

func FindCommonStrings(stringsArray ...[]string) (commonStrings []string)

FindCommonStrings finds the common string from multiple string slices e.g. stringSlice1 = []string{"aaa", "bbb", "ccc"} stringSlice2 = []string{"bbb", "ccc", "ddd"} stringSlice3 = []string{"aaa", "bbb", "ccc", "eee"} FindCommonStrings(stringSlice1, stringSlice2, stringSlice3) shall return a string slice with {"bbb", "ccc"}

func MakeTimestamp

func MakeTimestamp() int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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