utility

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IfThenElse

func IfThenElse(condition bool, t interface{}, e interface{}) interface{}

IfThenElse is a wrapper for the if condition.

func IfThenElseInt

func IfThenElseInt(condition bool, t int, e int) int

IfThenElseInt is a wrapper for the if condition.

func IfThenElseString

func IfThenElseString(condition bool, t string, e string) string

IfThenElseString is a wrapper for the if condition.

func SameStringSlice added in v0.5.0

func SameStringSlice(x, y []string) bool

func SliceUniqueInt

func SliceUniqueInt(a []int) []int

SliceUniqueInt removes duplicates from an int slice.

func SliceUniqueString

func SliceUniqueString(a []string) []string

SliceUniqueString removes duplicates from a string slice.

func StringSliceContains

func StringSliceContains(s []string, v string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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