File: doc.go

package info (click to toggle)
golang-github-tideland-golib 4.24.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,144 kB
  • sloc: makefile: 4
file content (30 lines) | stat: -rw-r--r-- 1,193 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Tideland Go Library - String Extensions
//
// Copyright (C) 2015-2017 Frank Mueller / Tideland / Oldenburg / Germay
//
// All rights reserved. Use of this source code is governed
// by the new BSD license.

// Package stringex of the Tideland Go Library helps when working with
// strings. So SplitFilter() and SplitMap() split given strings by a
// separator and user defined functions are called for each part to
// filter or map those.
//
// Matches() provides a more simple string matching than regular
// expressions. Patterns are ? for one char, * for multiple chars,
// and [aeiou] or [0-9] for group or ranges of chars. Both latter
// can be negotiated with [^abc] while the pattern chars also can
// be escaped with \.
//
// While the Valuer defines the interface to anything that may
// return a value as string the Default helps to interpret these
// strings as other data types. In case they don't match a default
// value will be returned.
//
// Processor defines an interface for the processing of strings.
// Those easily can be chained or used for stream splitting again
// working with processor chains. Some processors are already
// pre-defined.
package stringex

// EOF