url

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 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() (err 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 NullHttpURL added in v1.0.10

type NullHttpURL string

NullHttpURL represents a URL type with http/https schema Can be empty

func (NullHttpURL) String added in v1.0.10

func (nullHttpURL NullHttpURL) String() string

String implementation of Stringer interface

func (*NullHttpURL) UnmarshalJSON added in v1.0.10

func (nullHttpURL *NullHttpURL) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshall implementation for Email

func (NullHttpURL) Validate added in v1.0.10

func (nullHttpURL NullHttpURL) Validate() (err error)

Validate implementation of ozzo-validation Validate interface

func (NullHttpURL) Value added in v1.0.10

func (nullHttpURL NullHttpURL) 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