urls

package
v0.0.0-...-dbd1d17 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSource

func GetSource(url *url.URL) (string, error)

GetSource calculates Source value for provided url. Source value is second (or third level) domain name. For example: | link | source | | ---- | ------ | | youtube.com | youtube | | stackoverflow.com | stackoverflow | | domain.co.uk | domain |

func ParseURL

func ParseURL(rawurl string) (*url.URL, error)

ParseURL parses provided rawurl string into actual URL object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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