Documentation

Overview

Package status provides a func to check if two repo URLs are equal in the context of Go packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualRepoURLs

func EqualRepoURLs(rawurl0, rawurl1 string) bool

EqualRepoURLs reports whether two URLs are equal, ignoring scheme and userinfo. It parses URLs with support for SCP-like syntax, like the cmd/go tool. If there are any errors parsing the URLs, it resorts to doing a string comparison.

func FormatRepoURL

func FormatRepoURL(layout, rawurl string) string

FormatRepoURL tries to rewrite rawurl to follow the same format as layout URL. If either of two URLs has parsing errors, then rawurl is returned unmodified.

Types

This section is empty.

Source Files