mirror of
https://github.com/chenasraf/sofmani.git
synced 2026-05-18 01:29:02 +00:00
10 lines
245 B
Go
10 lines
245 B
Go
package utils
|
|
|
|
import "strings"
|
|
|
|
// IsGitURL checks if a string is likely a Git URL.
|
|
// It checks for "https://" or "git@" prefixes.
|
|
func IsGitURL(url string) bool {
|
|
return strings.HasPrefix(url, "https://") || strings.HasPrefix(url, "git@")
|
|
}
|