I agree, it seems like an unfortunate oversight. You can do it without the 
slice tricks: https://play.golang.org/p/tNAPOcQqApN
It does take an additional Sprintf() though.

On Tuesday, July 14, 2020 at 8:40:18 AM UTC-4, Vasiliy Tolstov wrote:
>
> вт, 14 июл. 2020 г. в 15:17, Jake Montgomery <jake...@gmail.com 
> <javascript:>>: 
> > 
> > Why not just remove the dot? You know where it is: 
> https://play.golang.org/p/ZHqHTOeA7HQ 
> > Perhaps there is a better way, but this seems to work. 
> > 
>
> Yes, thanks. My question mostly - why format time to some intermediate 
> string that needs to be preprocessed before usage =) 
> Format means that you get a needed sting and not that you must use 
> slice manipulation. 
>
> -- 
> Vasiliy Tolstov, 
> e-mail: v.to...@selfip.ru <javascript:> 
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/a96b94bc-ab09-488f-9a7a-5622e6935a1eo%40googlegroups.com.

Reply via email to