Help us shape the future of Go! Take the 2026 Go Developer Survey

gitremote

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package gitremote validates remote locations accepted by the native Git adapters.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalid = errors.New("invalid Git remote")

ErrInvalid indicates that a remote is malformed, unsupported, or embeds credentials.

Functions

func Validate

func Validate(remote string) error

Validate accepts local absolute paths, file URLs, HTTPS URLs, SSH URLs, and SCP-like SSH remotes. HTTPS userinfo and SSH passwords are never accepted; SSH usernames remain supported because they are not secrets.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL