strings

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InSlice

func InSlice(a string, list []string) bool

InSlice returns true if the string is in the slice

func RemoveQuotes

func RemoveQuotes(s string) string

RemoveQuotes removes quotes from a string

func SafeRandom

func SafeRandom(length int) string

SafeRandom returns a random string of length n It is safe to use this function in concurrent environments If it fails, it will try again, it should fail more than once

func ValidHex

func ValidHex(x byte) bool

ValidHex returns true if the byte is a valid hex character

func X2c

func X2c(what string) byte

X2c converts a hex character to its ascii value

Types

This section is empty.

Jump to

Keyboard shortcuts

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