utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 1 Imported by: 27

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualStringLists

func EqualStringLists(list1, list2 []string) bool

EqualStringLists Compare two string lists

func EqualStringMaps

func EqualStringMaps(map1, map2 map[string]string) bool

EqualStringMaps Compare two string maps

func EqualStringsAsPtr

func EqualStringsAsPtr(s1, s2 *string) bool

func ShortenString

func ShortenString(s string, charsToCut int) string

ShortenString Get string without n-last chars

func StringPtr

func StringPtr(s string) *string

StringPtr returns a pointer to the passed string.

func TernaryString

func TernaryString(condition bool, trueValue, falseValue string) string

TernaryString operator

Types

This section is empty.

Directories

Path Synopsis
net

Jump to

Keyboard shortcuts

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