jsontypes

package
v0.0.0-...-6064aa9 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duration

type Duration struct {
	time.Duration
}

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

func (*Duration) Unmarshal

func (d *Duration) Unmarshal(s string) (err error)

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(data []byte) error

type Regexp

type Regexp struct {
	*regexp.Regexp
}

func (*Regexp) MarshalJSON

func (r *Regexp) MarshalJSON() ([]byte, error)

func (*Regexp) Unmarshal

func (r *Regexp) Unmarshal(s string) (err error)

func (*Regexp) UnmarshalJSON

func (r *Regexp) UnmarshalJSON(data []byte) error

type URL

type URL struct {
	*url.URL
}

func (URL) MarshalJSON

func (u URL) MarshalJSON() ([]byte, error)

func (*URL) Unmarshal

func (u *URL) Unmarshal(s string) (err error)

func (*URL) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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