strings_filter

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHexPrefix

func AddHexPrefix(hex string) string

func CheckForSuffixMatch added in v1.0.0

func CheckForSuffixMatch(word string, wordFilterSlice []string) bool

func FilterStringWithOpts

func FilterStringWithOpts(word string, filter *FilterOpts) bool

FilterStringWithOpts returns true if the word passes the filter

func ParseIntFromHexStr added in v1.0.0

func ParseIntFromHexStr(value string) (int, error)

ParseIntFromHexStr parse hex string value to int

func Trim0xPrefix

func Trim0xPrefix(input string) string

func ValidateHttpsURL

func ValidateHttpsURL(urlString string) bool

Types

type FilterOpts

type FilterOpts struct {
	DoesNotStartWithThese []string
	StartsWithAnyOfThese  []string
	StartsWith            string
	Contains              string
	DoesNotInclude        []string
}

Jump to

Keyboard shortcuts

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