Registry / utility / whilp-git-urls

whilp-git-urls

JSON →
library1.0.0gogounverified

Parses Git URLs into their components (protocol, host, path).

go get github.com/whilp/git-urls
INSTALL
IMPORT
SIG · WHILP-GIT-URLS
W
whilp-git-urls
utilitygov1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

giturls
github.com/whilp/git-urls

Parse a Git URL and print the host.

package main import ( "fmt" "github.com/whilp/git-urls" ) func main() { u, _ := giturls.Parse("git@github.com:user/repo.git") fmt.Println(u.Host) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
whilp-git-urls — go get whilp-git-urls · libregistry