url

package
v2.0.20 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 5 Imported by: 1

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

type HttpURL string

HttpURL represents a URL type with http/https schema

func (HttpURL) String

func (httpUrl HttpURL) String() string

String implementation of Stringer interface

func (*HttpURL) UnmarshalJSON

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

UnmarshalJSON unmarshall implementation for Email

func (HttpURL) Validate

func (httpUrl HttpURL) Validate() (err error)

Validate implementation of ozzo-validation Validate interface

func (HttpURL) Value

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

Value implementation of driver.Valuer

type NullHttpURL

type NullHttpURL string

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

func (NullHttpURL) String

func (nullHttpURL NullHttpURL) String() string

String implementation of Stringer interface

func (*NullHttpURL) UnmarshalJSON

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

UnmarshalJSON unmarshall implementation for Email

func (NullHttpURL) Validate

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

Validate implementation of ozzo-validation Validate interface

func (NullHttpURL) Value

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