giturl

package
v12.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package giturl provides facilities to work with the special URL formats used in Git remotes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parts

type Parts struct {
	User string // optional username
	Host string // hostname of the Git server
	Org  string // name of the organization that the repo is in
	Repo string // name of the repository
}

Parts contains recognized parts of a Git URL.

func Parse

func Parse(url string) *Parts

Jump to

Keyboard shortcuts

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