githubrepo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package githubrepo parses GitHub repository names and clone URLs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Same

func Same(left, right string) bool

Same reports whether two validated repository names identify the same case-insensitive GitHub repository.

Types

type Repository

type Repository struct {
	Owner string
	Name  string
}

Repository is a validated GitHub owner/repository pair.

func Parse

func Parse(value string) (Repository, error)

Parse accepts owner/repo names and HTTPS or SSH github.com clone URLs.

func (Repository) FullName

func (r Repository) FullName() string

func (Repository) Normalized

func (r Repository) Normalized() string

Jump to

Keyboard shortcuts

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