util

package
v0.0.0-...-c44b651 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Amount

type Amount int

func (*Amount) Cents

func (a *Amount) Cents() int

func (*Amount) Float64

func (a *Amount) Float64() float64

func (*Amount) String

func (a *Amount) String() string

func (*Amount) UnmarshalText

func (a *Amount) UnmarshalText(data []byte) error

type DateISO

type DateISO struct {
	time.Time
}

DateISO decodes ISO8601 dates

func NewDateISO

func NewDateISO(s string) (d DateISO, err error)

func (DateISO) MarshalText

func (d DateISO) MarshalText() ([]byte, error)

func (*DateISO) String

func (d *DateISO) String() string

func (*DateISO) UnmarshalJSON

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

func (*DateISO) UnmarshalText

func (d *DateISO) UnmarshalText(data []byte) error

type DateUS

type DateUS struct {
	time.Time
}

func (*DateUS) UnmarshalJSON

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

func (*DateUS) UnmarshalText

func (d *DateUS) UnmarshalText(data []byte) error

Jump to

Keyboard shortcuts

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