daysago

package module
v0.0.0-...-7556f2f Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

README

daysago

A Golang library for Days Ago like functionality

The library takes as input a text string like 2 days ago and returns the time formatted as YYYY-MM-DD.

Take a look at the test file to see the functionality and usage

CircleCI

Documentation

Index

Constants

View Source
const Layout = "2006-01-02"

Variables

This section is empty.

Functions

func GetDateStringFromWordString

func GetDateStringFromWordString(refTime time.Time, input string) (out string)

GetDateStringFromWordString takes as input a sentence or word and returns a time for that

func GetDateStringRangeFromWordString

func GetDateStringRangeFromWordString(refTime time.Time, input string) (start, end string)

GetDateStringRangeFromWordString takes as input a sentence or word and returns a range of time as start and end

Types

This section is empty.

Jump to

Keyboard shortcuts

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