str

package
v0.4.3-rc01 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package str helps with strings

Index

Constants

View Source
const YAMLDisclaimer = `` /* 577-byte string literal not displayed */

YAMLDisclaimer text to be added on top of yaml files

Variables

This section is empty.

Functions

func Find

func Find(slice []string, val string) bool

Find a string in a slice of string. Return true when found else false

func FlattenMapStringString added in v0.1.2

func FlattenMapStringString(m map[string]string) string

FlattenMapStringString flatten a string string map into a string key1="value1", keyx="valuex",

func Hash added in v0.4.1

func Hash(s string) string

Hash used sha1 to hash a string to a shorter one

func RevertSlash

func RevertSlash(txt string) string

RevertSlash replace slash / by back slash \

Types

This section is empty.

Jump to

Keyboard shortcuts

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