FAQ
https://godoc.org/github.com/mgutz/str

import "github.com/mgutz/str"

Package str is a comprehensive set of string functions to build more
awesomeness. Str is a port of many of [string.js](http://stringjs.com),
which includes my contributions to the project.

Package str differs from string.js in that str is based on simple functions
not an intermediate String object to be consistent with Go.

str.Between("<a>foo</a>", "<a>", "</a>") == "foo"

Package str is designed to be pipelined.

s := str.Pipe("\nabcdef\n", Clean, BetweenF("a", "f"), ChompLeftF("bc")) // "de"

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedJul 10, '14 at 10:56p
activeJul 10, '14 at 10:56p
posts1
users1
websitegolang.org

1 user in discussion

Mgutz: 1 post

People

Translate

site design / logo © 2022 Grokbase