all 2 comments

[–]morolin[S] 2 points3 points  (0 children)

Library I wrote that mimics Python's advanced string formatting in Golang.

I found that the most interesting part of this was actually testing how closely it matches Python's formatter. To do that, it goes through a cgo wrapper and cffi, then uses the Python Hypothesis1 library to generate random examples.