Documentation
¶
Index ¶
- func GetRawFile(url *url.URL) *url.URL
- func GetRawRoot(url *url.URL) *url.URL
- 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 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.
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.