Go date time format compatible with Ruby's Time#strftime
go get github.com/acstech/go-strftime
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)
}