package string

import "github.com/coreos/etcd/pkg/strings"

Index

Functions

func Clone

func Clone(s string) string

Clone returns a copy of the string, so that we can safely point to the copy without worrying about changes via pointers.

func TrimSplit

func TrimSplit(s, sep string) []string

TrimSplit slices s into all substrings separated by sep and returns a slice of the substrings between the separator with all leading and trailing white space removed, as defined by Unicode.

Source Files

string.go

Version
v0.4.1
Published
May 21, 2014
Platform
linux/amd64
Imports
1 packages
Last checked
12 minutes ago

Tools for package owners.