Documentation ¶
Overview ¶
Package str exposes functionality from Go's strings package as an Elvish module.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DElvCode string
DElvCode contains the content of the .d.elv file for this module.
View Source
var Ns = eval.BuildNsNamed("str"). AddGoFns(map[string]any{ "compare": strings.Compare, "contains": strings.Contains, "contains-any": strings.ContainsAny, "count": strings.Count, "equal-fold": strings.EqualFold, "from-codepoints": fromCodepoints, "from-utf8-bytes": fromUtf8Bytes, "has-prefix": strings.HasPrefix, "has-suffix": strings.HasSuffix, "index": strings.Index, "index-any": strings.IndexAny, "join": join, "last-index": strings.LastIndex, "replace": replace, "split": split, "title": strings.Title, "to-codepoints": toCodepoints, "to-lower": strings.ToLower, "to-title": strings.ToTitle, "to-upper": strings.ToUpper, "to-utf8-bytes": toUtf8Bytes, "trim": strings.Trim, "trim-left": strings.TrimLeft, "trim-right": strings.TrimRight, "trim-space": strings.TrimSpace, "trim-prefix": strings.TrimPrefix, "trim-suffix": strings.TrimSuffix, }).Ns()
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.