go-git.v4: gopkg.in/src-d/go-git.v4/internal/url Index | Files

package url

import "gopkg.in/src-d/go-git.v4/internal/url"

Index

Package Files

url.go

func FindScpLikeComponents Uses

func FindScpLikeComponents(url string) (user, host, port, path string)

FindScpLikeComponents returns the user, host, port and path of the given SCP-like URL.

func IsLocalEndpoint Uses

func IsLocalEndpoint(url string) bool

IsLocalEndpoint returns true if the given URL string specifies a local file endpoint. For example, on a Linux machine, `/home/user/src/go-git` would match as a local endpoint, but `https://github.com/src-d/go-git` would not.

func MatchesScheme Uses

func MatchesScheme(url string) bool

MatchesScheme returns true if the given string matches a URL-like format scheme.

func MatchesScpLike Uses

func MatchesScpLike(url string) bool

MatchesScpLike returns true if the given string matches an SCP-like format scheme.

Package url imports 1 packages (graph) and is imported by 4 packages. Updated 2019-08-01. Refresh now. Tools for package owners.