datefilter

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(s string, loc *time.Location) (time.Time, error)

Parse accepts compact or ISO dates in the supplied timezone.

Types

type Range

type Range struct{ Since, Until string }

Range holds inclusive ISO calendar dates; an empty bound is open.

func Resolve

func Resolve(since, until string, last int, group string, now time.Time, loc *time.Location) (Range, error)

Resolve validates bounds or computes a calendar range for the chosen grouping.

func (Range) String

func (r Range) String() string

Jump to

Keyboard shortcuts

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