util

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayEquals

func ArrayEquals(a []string, b []string) bool

ArrayEquals determines whether two string arrays are identical.

func BoolPointerToSelectField

func BoolPointerToSelectField(b *bool) string

BoolPointerToSelectField converts the bool pointer the string of select field.

func Diff2DStringSlice

func Diff2DStringSlice(origins [][]string, updated [][]string) (added [][]string, removed [][]string)

DiffStringSlice returns the difference between two given string arrays, including deleted and added elements.

func DiffStringSlice

func DiffStringSlice(origins []string, updated []string) (added []string, removed []string)

DiffStringSlice returns the difference between two given string arrays, including deleted and added elements.

func In2DStringSlice

func In2DStringSlice(slices [][]string, slice []string) bool

InStringSlice checks if all elements in the array are strings.

func InInt32Slice

func InInt32Slice(slice []int32, num int32) bool

InInt32Slice checks if all elements in the array are integers.

func InStringSlice

func InStringSlice(slice []string, str string) bool

InStringSlice checks if all elements in the array are strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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