status

package
v0.0.0-...-7e7a12e Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 4 Imported by: 6

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.

Jump to

Keyboard shortcuts

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