strings

package
Version: v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package strings provides extended functionality for string types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneBoolMap

func CloneBoolMap(in map[string]bool) map[string]bool

CloneBoolMap returns an exact copy of a map consisting string key and bool value

func CloneList

func CloneList(in []string) []string

CloneList returns an exact copy of the provided string slice

func CloneMap

func CloneMap(in map[string]string) map[string]string

CloneMap returns an exact copy of a map consisting string key and value

func Equal

func Equal(s1, s2 []string) bool

Equal returns true if the slices contain identical values in the identical order

func IndexOfString

func IndexOfString(arr []string, val string) int

IndexOfString returns the index of a string element in a given slice

func Unique

func Unique(in []string) []string

Unique returns a uniqueified version of the list

Types

type StringMap

type StringMap map[string]string

StringMap represents a map[string]string

func (StringMap) String

func (m StringMap) String() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to