You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add TrimPrefix, ToUpper, and ToLower template funcs
We need TrimPrefix and ToUpper for some links at Tailscale, and might as
well ToLower as well at that point.
Updates #10
Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d
Signed-off-by: Will Norris <[email protected]>
<li><code>PathEscape</code> is the <ahref="https://pkg.go.dev/net/url#PathEscape">url.PathEscape</a> function for escaping values inside a URL path.
65
65
<li><code>QueryEscape</code> is the <ahref="https://pkg.go.dev/net/url#QueryEscape">url.QueryEscape</a> function for escaping values inside a URL query.
66
+
<li><code>TrimPrefix</code> is the <ahref="https://pkg.go.dev/strings#TrimPrefix">strings.TrimPrefix</a> function for removing a leading prefix.
66
67
<li><code>TrimSuffix</code> is the <ahref="https://pkg.go.dev/strings#TrimSuffix">strings.TrimSuffix</a> function for removing a trailing suffix.
68
+
<li><code>ToLower</code> is the <ahref="https://pkg.go.dev/strings#ToLower">strings.ToLower</a> function for mapping all Unicode letters to their lower case.
69
+
<li><code>ToUpper</code> is the <ahref="https://pkg.go.dev/strings#ToUpper">strings.ToUpper</a> function for mapping all Unicode letters to their upper case.
67
70
<li><code>Match</code> is the <ahref="https://pkg.go.dev/regexp#MatchString">regexp.MatchString</a> function for matching a regular expression pattern.
0 commit comments