1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00
goreleaser/split/split.go
Carlos Alexandro Becker d9c8c5f499
golint
2016-12-30 12:41:59 -02:00

10 lines
202 B
Go

package split
import "strings"
// OnSlash split a string on / and return the first 2 parts
func OnSlash(pair string) (string, string) {
parts := strings.Split(pair, "/")
return parts[0], parts[1]
}