Documentation
¶
Index ¶
- func GetRawFile(url *url.URL) *url.URL
- func GetRawRoot(url *url.URL, branch ...string) (*url.URL, error)
- func GetRepo(url *url.URL) *url.URL
- func IsAccount(url *url.URL) bool
- func IsBitBucket(url *url.URL) bool
- func IsFile(url *url.URL) bool
- func IsGitHub(url *url.URL) bool
- func IsGitLab(url *url.URL) bool
- func IsHttpRepo(url *url.URL) bool
- func IsRawFile(url *url.URL) bool
- func IsRawRoot(url *url.URL) bool
- func IsRepo(url *url.URL) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRawFile ¶
GetRawFile returns the raw URL corresponding to the supplied file URL. In case the supplied file URL is already raw, it will be returned back.
func GetRawRoot ¶
GetRawRoot returns the URL of the raw repository root containing the supplied file. Optionally you can pass a branch to hint which branch to use, if it can't be autodetected.
func IsAccount ¶
IsAccount returns true if the supplied URL points to the root page of an org or user account.
func IsBitBucket ¶
IsBitBucket returns true if the supplied URL belongs to BitBucket.
func IsHttpRepo ¶
IsHttpRepo returns true if the supplied URL points to an HTTP git repository.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.