If we want to preserve the existing format, this also works:
prefix = prefix + time.Now().Format("-20060102-150405")
http://play.golang.org/p/tzf_9lEcZx
I don't think the specific format matters, though. And I really don't understand why we don't just use ioutil.TempDir
If we want to preserve the existing format, this also works:
prefix = prefix + time.Now( ).Format( "-20060102- 150405" )
http:// play.golang. org/p/tzf_ 9lEcZx
I don't think the specific format matters, though. And I really don't understand why we don't just use ioutil.TempDir