ago

package module
v0.0.0-...-bcfcdea Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 5 Imported by: 0

README

ago

Documentation Build Status Report Card

About

ago is a golang package for parsing time intervals of the form X <duration> ago.

Created by Jay Taylor and used by Gigawatt.

Requirements
  • Go version 1.1 or newer
Running the test suite
go test ./...
License

Permissive MIT license, see the LICENSE file for more information.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Time

func Time(s string, relativeTo time.Time) *time.Time

Time takes an input string of the form ".. ## <time-unit> ago" and returns the closest possible time value.

When no match is found, nil will be returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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