types

package
v0.0.0-...-5f28de8 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DateFormat     = "2006-01-02"
	DatetimeFormat = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrencyValue

type CurrencyValue struct {
	decimal.Decimal
	// contains filtered or unexported fields
}

func (*CurrencyValue) MarshalText

func (c *CurrencyValue) MarshalText() ([]byte, error)

func (*CurrencyValue) String

func (c *CurrencyValue) String() string

func (*CurrencyValue) UnmarshalJSON

func (c *CurrencyValue) UnmarshalJSON(b []byte) error

func (*CurrencyValue) UnmarshalText

func (c *CurrencyValue) UnmarshalText(b []byte) error

type Date

type Date struct {
	time.Time
	Empty bool
}

func (Date) String

func (t Date) String() string

func (*Date) UnmarshalJSON

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

func (*Date) UnmarshalText

func (t *Date) UnmarshalText(data []byte) error

type Datetime

type Datetime struct {
	time.Time
}

func (Datetime) String

func (t Datetime) String() string

func (*Datetime) UnmarshalJSON

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

func (*Datetime) UnmarshalText

func (t *Datetime) UnmarshalText(data []byte) error

type MarketingConsent

type MarketingConsent int8
const (
	UNSET MarketingConsent = iota
	REFUSED
	GRANTED
)

func (MarketingConsent) MarshalText

func (m MarketingConsent) MarshalText() ([]byte, error)

func (MarketingConsent) String

func (m MarketingConsent) String() string

func (*MarketingConsent) UnmarshalJSON

func (m *MarketingConsent) UnmarshalJSON(data []byte) error

func (*MarketingConsent) UnmarshalText

func (m *MarketingConsent) UnmarshalText(data []byte) error

type PhpBool

type PhpBool bool

func (*PhpBool) String

func (b *PhpBool) String() string

Jump to

Keyboard shortcuts

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