types

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Date

type Date civil.Date

Date is date type

func DateOf

func DateOf(t time.Time) Date

DateOf returns Date of time.Time instance

func ParseDate

func ParseDate(s string) (Date, error)

ParseDate parses a string in 'YYYY-MM-DD' format and returns the date value it represents.

func (*Date) Scan

func (t *Date) Scan(v any) error

Scan casts time.Time date to Date type

func (Date) String

func (t Date) String() string

String returns the date in RFC3339 full-date format.

Jump to

Keyboard shortcuts

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