test

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareIntSlices

func CompareIntSlices(s1 []int, s2 []int) bool

CompareIntSlices - compares two int slices

func CompareSets

func CompareSets(s1 map[string]struct{}, s2 map[string]struct{}) bool

CompareSets - comparses two string sets

func CompareSlices

func CompareSlices(s1 []interface{}, s2 []interface{}) bool

CompareSlices - compares two any type slices

func CompareSlices2D

func CompareSlices2D(s1 [][]interface{}, s2 [][]interface{}) bool

CompareSlices2D - compares two slices of any type slices

func CompareStringSlices

func CompareStringSlices(s1 []string, s2 []string) bool

CompareStringSlices - compares two string slices

func CompareStringSlices2D

func CompareStringSlices2D(s1 [][]string, s2 [][]string) bool

CompareStringSlices2D - compares two slices of string slices

func MakeComparableMap

func MakeComparableMap(m *map[string]bool)

MakeComparableMap - transforms input map { k1: v1, k2: v2, ..., kn: vn } into map with single key being its string representation, works on map[string]bool type Example: { "b": true, "a": false, "c": true } --> { "a:false,b:true,c:true,": true } We cannot compare such maps directly because order of keys is not guaranteed

func MakeComparableMapStr added in v0.4.0

func MakeComparableMapStr(m *map[string]string)

MakeComparableMapStr - transforms input map { k1: v1, k2: v2, ..., kn: vn } into map with single key being its string representation, works on map[string]string type Example: { "b": "x", "a": "y", "c": "z" } --> { "a:y,b:x,c:z,": true } We cannot compare such maps directly because order of keys is not guaranteed

func YMDHMS

func YMDHMS(in ...int) time.Time

YMDHMS - return time defined by args

Types

This section is empty.

Jump to

Keyboard shortcuts

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