Documentation
¶
Index ¶
Constants ¶
const ( NL = "\n" TAB = "\t" PATHSEP = string(os.PathListSeparator) )
const (
ListSep = ":"
)
Variables ¶
var NormalizeNL = normalizeNewlinesString
NormalizeNL normalizes newlines to the popular standard '\n' convention.
Any '\r\n' (a Windows convention) or '\r' (an older Apple convention) sequences are replaced with a single '\n'.
Several methods were profiled and the most efficient one is aliased to this function. YMMV; change the alias as you see fit =)
var Verbose bool = false
Functions ¶
func DropDupeSeps ¶
DropDupeSeps replaces consecutive duplicates of only specific 'sep' strings with a single 'sep'
func GetEnvValue ¶
Types ¶
type ShPath ¶
type ShPath struct {
// contains filtered or unexported fields
}
func (*ShPath) Add ¶
Add checks that the directory exists and adds element s to the path at position n. If the position is not valid, s will be placed at the end of the list.
func (*ShPath) Clean ¶
Clean removes invalid directories, and returns the number removed, if any. The order of the directories is maintained.
func (*ShPath) DebugPrint ¶
func (p *ShPath) DebugPrint()
DebugPrint prints a numbered list of items.