mirror of
https://github.com/stashapp/stash.git
synced 2025-12-19 14:53:01 +01:00
14 lines
210 B
Go
14 lines
210 B
Go
package name
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
func Key(s string) string {
|
|
return New(s).Key().String()
|
|
}
|
|
|
|
func (i Ident) Key() Ident {
|
|
s := strings.Replace(i.String(), "\\", "/", -1)
|
|
return New(strings.ToLower(s))
|
|
}
|