uri

package
v0.6.95 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package uri defines a simple uri type

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host string

https://en.wikipedia.org/wiki/Uniform_Resource_Identifier .

func NewHostFromString

func NewHostFromString(host string) (Host, error)

func (Host) AddPrefix

func (h Host) AddPrefix(prefix string) Host

func (Host) GetRootHost

func (h Host) GetRootHost() string

func (Host) GetSlug

func (h Host) GetSlug() string

func (Host) ToURL

func (h Host) ToURL() URL

Jump to

Keyboard shortcuts

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