url

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package url provides simple URL type.

Author Mikalai Konan(mikalai.konan@icloud.com).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpURL added in v1.0.3

type HttpURL string

HttpURL represents a URL type with http/https schema

func (HttpURL) String added in v1.0.3

func (httpUrl HttpURL) String() string

String implementation of Stringer interface

func (*HttpURL) UnmarshalJSON added in v1.0.3

func (httpUrl *HttpURL) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshall implementation for Email

func (HttpURL) Validate added in v1.0.3

func (httpUrl HttpURL) Validate() error

Validate implementation of ozzo-validation Validate interface

func (HttpURL) Value added in v1.0.3

func (httpUrl HttpURL) Value() (value driver.Value, err error)

Value implementation of driver.Valuer

type URL

type URL string

URL represents a URL type

func (URL) String

func (url URL) String() string

String implementation of Stringer interface

func (*URL) UnmarshalJSON

func (url *URL) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshall implementation for Email

func (URL) Validate

func (url URL) Validate() error

Validate implementation of ozzo-validation Validate interface

func (URL) Value

func (url URL) Value() (value driver.Value, err error)

Value implementation of driver.Valuer

Jump to

Keyboard shortcuts

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