Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeRepositoryWebLink ¶
func MakeRepositoryWebLink(repoURL *RepositoryURL) string
MakeRepositoryWebLink generates a web link (http/https) for a git repository (by guessing sometimes)
Types ¶
type ErrWrongURLFormat ¶
type ErrWrongURLFormat struct {
URL string
}
ErrWrongURLFormat represents an error with wrong url format
func (ErrWrongURLFormat) Error ¶
func (err ErrWrongURLFormat) Error() string
type GitURL ¶
GitURL represents a git URL
func ParseGitURL ¶
ParseGitURL parse all kinds of git URL: * Full URL: http://git@host/path, http://git@host:port/path * SCP short syntax: git@host:/path * File path: /dir/repo/path
Source Files
¶
- url.go
Click to show internal directories.
Click to hide internal directories.