Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindScpLikeComponents

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

    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

      func MatchesScheme(url string) bool

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

        func MatchesScpLike

        func MatchesScpLike(url string) bool

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

          Types

          This section is empty.

          Source Files