MCPcopy
hub / github.com/hashicorp/go-getter / GitHubDetector

Struct GitHubDetector

detect_github.go:11–11  ·  view source on GitHub ↗

GitHubDetector implements Detector to detect GitHub URLs and turn them into URLs that the Git Getter can understand.

Source from the content-addressed store, hash-verified

9// GitHubDetector implements Detector to detect GitHub URLs and turn
10// them into URLs that the Git Getter can understand.
11type GitHubDetector struct{}
12
13func (d *GitHubDetector) Detect(src, _ string) (string, bool, error) {
14 if len(src) == 0 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected