blob: 82b1741b5ac3581dd25b32b9147a750d7b032a9c (
plain) (
tree)
|
|
package entity
import "strings"
func RefsToIds(refs []string) []Id {
ids := make([]Id, len(refs))
for i, ref := range refs {
ids[i] = refToId(ref)
}
return ids
}
func refToId(ref string) Id {
split := strings.Split(ref, "/")
return Id(split[len(split)-1])
}
|