typex

package
v0.0.0-...-bebf002 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email string

func (Email) MarshalJSON

func (n Email) MarshalJSON() ([]byte, error)

接受数据进行解密 数据转为加密字符串

func (*Email) UnmarshalJSON

func (n *Email) UnmarshalJSON(b []byte) error

接受数据进行加密 数据放到结构体主

type Float32

type Float32 float64

func (Float32) MarshalJSON

func (n Float32) MarshalJSON() ([]byte, error)

type Float64

type Float64 float64

func (Float64) MarshalJSON

func (n Float64) MarshalJSON() ([]byte, error)

type IDCard

type IDCard string

type Mask

type Mask string

func (Mask) MarshalJSON

func (n Mask) MarshalJSON() ([]byte, error)

接受数据进行解密 数据转为加密字符串

func (*Mask) UnmarshalJSON

func (n *Mask) UnmarshalJSON(b []byte) error

接受数据进行加密 数据放到结构体

type Mobile

type Mobile string

type PassWord

type PassWord string

type Phone

type Phone string

type Pin

type Pin string

func (*Pin) FristPin

func (p *Pin) FristPin() string

func (Pin) JianPin

func (p Pin) JianPin(han string) string

func (*Pin) PinAll

func (p *Pin) PinAll() string

func (Pin) QuanPin

func (p Pin) QuanPin() string

type Time

type Time time.Time

func (Time) MarshalJSON

func (t Time) MarshalJSON() ([]byte, error)

序列化

func (Time) Now

func (t Time) Now() Time

func (Time) String

func (t Time) String() string

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(data []byte) error

反序列化

func (Time) Year

func (t Time) Year() int

Jump to

Keyboard shortcuts

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