card

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardDate

type CardDate string

CardDate represents as expired card date type with format MM/YY

func (CardDate) String

func (cardDate CardDate) String() string

String implementation of Stringer interface

func (CardDate) ToTime

func (cardDate CardDate) ToTime() (time.Time, error)

func (*CardDate) UnmarshalJSON

func (cardDate *CardDate) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshall implementation for CardDate

func (CardDate) Validate

func (cardDate CardDate) Validate() error

Validate implementation of ozzo-validation Validate interface

func (CardDate) Value

func (cardDate CardDate) 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