github.com/acstech/go-strftime

golang date time format like ruby layout


Install
go get github.com/acstech/go-strftime

Documentation

go-strftime Build Status Coverage Status

Go date time format compatible with Ruby's Time#strftime

Install

go get github.com/acstech/go-strftime

Example

package main

import (
  "fmt"
  "time"

  "github.com/acstech/go-strftime"
)

func main() {
  t := time.Now()
  s := strftime.Strftime(&t, "%Y-%m-%d %H:%M:%S")
  fmt.Println(s)
}