strutil

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractTagsFromText

func ExtractTagsFromText(text string) []string

func GetFileExtFromURL

func GetFileExtFromURL(rawurl string) (string, error)

func MD5Hash

func MD5Hash(data string) string

func ParseTo2DArray

func ParseTo2DArray(str, sep, sep2 string) [][]string

ParseTo2DArray parses a string into a 2D array using two separators.

ParseTo2DArray("1,2,3;4,5,6", ",", ";") => [][]string{{"1", "2", "3"}, {"4", "5", "6"}}

ParseTo2DArray("1,2,3;\"4,5,6\"", ",", ";") => [][]string{{"1", "2", "3"}, {"4,5,6"}}

func SanitizeFileName

func SanitizeFileName(fileName string) string

func TagRegex

func TagRegex() *regexp.Regexp

Types

This section is empty.

Jump to

Keyboard shortcuts

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