// SplitFullName splits the repository fullname into map[string]string
// with the keys being "owner" and "name".
SplitFullName splits the repository fullname into map[string]string
with the keys being "owner" and "name".
// SplitFullName splits the repository fullname into map [ string ] string // with the keys being " owner " and " name " .
func SplitFullName(fullname string) (map[string]string, error) {
	split := strings.Split(fullname, "/")
	if len(split) != 2 {
		return nil, errors.New(errFullname)
	}
	return map[string]string{
		"owner": split[0],
		"name":  split[1],
	}, nil
}
func SplitFullName ( fullname string ) ( map [ string ] string , error ) { split := strings . Split ( fullname , " " ) if len ( split ) != 2 { return nil , errors . New ( errFullname ) } return map [ string ] string { " " : split [ 0 ] , " " : split [ 1 ] , } , nil }
SplitFullName splits the repository fullname into map[string]string
with the keys being "owner" and "name".
SplitFullName splits the repository fullname into map [ string ] string with the keys being " owner " and " name " .