lestrrat-go / strftime

Fast strftime for Go
MIT License
110 stars 21 forks source link

Implement a microsecond extension #16

Closed zmwangx closed 4 years ago

zmwangx commented 4 years ago

The microsecond extension is available in e.g. Python's strftime as %f, and it is useful for e.g. profilers.

zmwangx commented 4 years ago

Thanks for the quick review.

The test tests against %L -- which is fine, because you're using 'L' as the symbol, but maybe it might throw the reader off why you're not using %f?

That was a copy-paste oversight. Fixed.

"List of available extensions" in the README :)

Added. I also added links to autogenerated docs on pkg.go.dev, no sure if that's excessive for you.

lestrrat commented 4 years ago

Cool, thanks a bunch. Merging.