times

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package times provides sorting capabilities to a slice of type time

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Times

type Times []time.Time

Times represents a slice of time.Time

func FromMap

func FromMap(m map[time.Time]bool) Times

FromMap returns a times.Times from a map of time.Time

func (Times) Len

func (t Times) Len() int

Len returns the length of a slice of time.Times

func (Times) Less

func (t Times) Less(i, j int) bool

Less returns true if i comes before j

func (Times) String

func (t Times) String() string

func (Times) Swap

func (t Times) Swap(i, j int)

Swap modifies a slice of time.Times by swapping the values in indexes i and j

Jump to

Keyboard shortcuts

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