urlutil

package
v17.11.0-ce-rc4+incomp... Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package urlutil provides helper function to check urls kind. It supports http urls, git urls and transport url (tcp://, …)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGitURL

func IsGitURL(str string) bool

IsGitURL returns true if the provided str is a git repository URL.

func IsTransportURL added in v1.7.0

func IsTransportURL(str string) bool

IsTransportURL returns true if the provided str is a transport (tcp, tcp+tls, udp, unix) URL.

func IsURL

func IsURL(str string) bool

IsURL returns true if the provided str is an HTTP(S) URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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