Documentation
¶
Index ¶
- func Dedupe(values []string, keyGetter ...StringKeyGetter) []string
- func GetHttpCloneUrlFromHttpLink(httpLinkUrl string) (string, error)
- func GetHttpLinkFromHttpCloneUrl(httpCloneUrl string) (string, error)
- func GetHttpLinkFromSshCloneUrl(sshCloneUrl string) (string, error)
- func GetSshCloneUrlFromHttpLinkUrl(httpLinkUrl string) (string, error)
- func IsEmpty(test string) bool
- type StringKeyGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dedupe ¶
func Dedupe(values []string, keyGetter ...StringKeyGetter) []string
Dedupe de-duplicates the provided :values slice and returns the de-duplicated slice
func GetHttpCloneUrlFromHttpLink ¶
GetHttpCloneUrlFromHttpLink returns the Git HTTP clone URL given a HTTP link URL, for example if the repository link is https://github.com/zephinzer/dev, the returned clone URL will be https://github.com/zephinzer/dev.git
func GetSshCloneUrlFromHttpLinkUrl ¶
GetSshCloneUrlFromHttpLinkUrl returns the Git SSH clone URL given a HTTP link URL, for example if the repository link is https://github.com/zephinzer/dev, the returned clone URL will be git@github.com:zephinzer/dev.git
Types ¶
type StringKeyGetter ¶
StringKeyGetter is the signature for a function used in .Dedupe
Click to show internal directories.
Click to hide internal directories.