strings2

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package strings2 contains string helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(a, b []string) bool

Equal tells whether a and b contain the same elements. A nil argument is equivalent to an empty slice.

Source: https://yourbasic.org/golang/compare-slices/

func ReplaceSpaces

func ReplaceSpaces(str string, replacementRune rune) string

ReplaceSpaces replaces all spaces with the given rune.

func SortedEqual

func SortedEqual(a, b []string) bool

SortedEqual sorts the slices first and then compares like Equal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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