httpext

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URL

type URL struct {
	*url.URL
}

URL is wrap on net/url for easy marshaling

func NewURL

func NewURL(url *url.URL) *URL

NewURL create new instance of URL from net/url

func ParseURL

func ParseURL(raw string) (*URL, error)

ParseURL parses raw into a URL structure

func (URL) MarshalText

func (url URL) MarshalText() (text []byte, err error)

MarshalText convert url to text

func (URL) MarshalYAML

func (url URL) MarshalYAML() (interface{}, error)

MarshalYAML marshal url to yaml

func (*URL) UnmarshalText

func (url *URL) UnmarshalText(text []byte) error

UnmarshalText convert text to url

func (*URL) UnmarshalYAML

func (url *URL) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML yaml to url

Jump to

Keyboard shortcuts

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