mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-25 10:18:59 +02:00
small string split join optimization
This commit is contained in:
@@ -33,8 +33,8 @@ func (c containerHelper) getName() string {
|
||||
}
|
||||
|
||||
func (c containerHelper) getImageName() string {
|
||||
colonSep := strings.Split(c.Image, ":")
|
||||
slashSep := strings.Split(colonSep[0], "/")
|
||||
colonSep := strutils.SplitRune(c.Image, ':')
|
||||
slashSep := strutils.SplitRune(colonSep[0], '/')
|
||||
return slashSep[len(slashSep)-1]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user