jarylc / go-chrono

Tiny golang wrapper for https://github.com/wanasit/chrono.

Home Page:https://github.com/wanasit/chrono

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chrono.go

Tiny golang wrapper for chrono-node.

Usage

Installation

go get -u github.com/jarylc/go-chrono/v2

Example

package main

import (
	"fmt"
	"log"
	"time"
	"github.com/jarylc/go-chrono/v2"
)

func main() {
	c, err := chrono.New()
	if err != nil {
		log.Fatal(err)
	}

	t, err := c.ParseDate("tomorrow morning", time.Now())
	if err != nil {
		log.Fatal(err)
		return
	}

	fmt.Println(t)
}

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Jaryl Chng - git@jarylchng.com https://jarylchng.com

About

Tiny golang wrapper for https://github.com/wanasit/chrono.

https://github.com/wanasit/chrono

License:MIT License


Languages

Language:JavaScript 99.7%Language:Go 0.3%Language:Makefile 0.0%