strings

package
v1.1.0-beta6 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Jump to

Keyboard shortcuts

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