mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-08 03:31:59 +02:00
10 lines
202 B
Go
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]
|
|
}
|