Skip to content

High performance C99-compatible strftime formatter for Go.

License

Notifications You must be signed in to change notification settings

timonwong/go-strftime

 
 

Repository files navigation

go-strftime

GoDoc Build Status Go Report Card Coverage

High performance C99-compatible strftime formatter for Go.

Caveats

EXPERIMENTAL Please test before use.

Performance

Just for reference :P

> go test -bench Bench -cpu 4 -benchmem .

goos: darwin
goarch: amd64
pkg: github.com/imperfectgo/go-strftime
BenchmarkStdTimeFormat-4         5000000               356 ns/op              48 B/op          1 allocs/op
BenchmarkGoStrftime-4            5000000               347 ns/op              32 B/op          1 allocs/op
PASS
ok      github.com/imperfectgo/go-strftime      4.245s

License

This project can be treated as a derived work of time package from golang standard library. Licensed under the Modified (3-clause) BSD license.

About

High performance C99-compatible strftime formatter for Go.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.0%
  • Assembly 2.0%