1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-03 13:11:48 +02:00
goreleaser/split/split.go

10 lines
202 B
Go
Raw Normal View History

2016-12-30 09:48:06 -02:00
package split
import "strings"
2016-12-30 12:41:59 -02:00
// OnSlash split a string on / and return the first 2 parts
2016-12-30 09:48:06 -02:00
func OnSlash(pair string) (string, string) {
parts := strings.Split(pair, "/")
return parts[0], parts[1]
}