In case anyone stumbles across this thread, here's a tempfile library that 
supports file suffix: https://github.com/tink-ab/tempfile

Also, if you'd like to track this upstream in Golang standard library, you 
can do that here: https://github.com/golang/go/issues/4896

Cheers,
Jens

On Monday, May 27, 2013 at 9:23:09 AM UTC+2, meta keule wrote:
>
> Hi,
>
> can somebody enlighten me why ioutil/TempFile takes a prefix for a 
> filename instead of a suffix?
> Everytime I need it, I also need to make sure to keep the file extension. 
>
> That would be easily achieved with a suffix. 
>
> The way it works now, I can't use TempFile or need to move the generated 
> file 
> (what may result in a conflict).
>
>
> Regards,
> Benny
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to