mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-05-03 17:39:53 -05:00
11 lines
196 B
Go
11 lines
196 B
Go
package strutil
|
|
|
|
// RemoveLeadingSlash removes the leading slash from a string.
|
|
func RemoveLeadingSlash(str string) string {
|
|
if len(str) > 0 && str[0] == '/' {
|
|
return str[1:]
|
|
}
|
|
|
|
return str
|
|
}
|