util

package
v0.0.0-...-9cff30b Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: BSD-3-Clause Imports: 3 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) UnmarshalText

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

type DateISO

type DateISO struct {
	time.Time
}

DateISO implements the encoding.TextUnmarshaler interface to unmarshal from an ISO8601 date

func (DateISO) MarshalText

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

func (*DateISO) UnmarshalText

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

type DateUS

type DateUS struct {
	time.Time
}

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