Help us shape the future of Go! Take the 2026 Go Developer Survey

strutil

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ISBNPattern = regexp.MustCompile(`(?i)(ISBN)?[\d\s\-]+X?`)

ISBNPattern to match ISBN

View Source
var ISSNPattern = regexp.MustCompile(`[0-9]{4,4}-[0-9]{3,3}[0-9X]`)

ISSNPattern is a regular expression matching standard ISSN.

Functions

func RemoveEach added in v0.1.343

func RemoveEach(ss []string, drop []string) (result []string)

RemoveEach returns a new slice with elements not contained in a drop list.

func Truncate

func Truncate(s string, length int) string

Truncate truncates a string.

func UnescapeTrim

func UnescapeTrim(s string) string

UnescapeTrim unescapes HTML character references and trims the space of a given string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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