I want to produce a time with this specific format in Go using the time.Format function:
yyyy_MM_dd_HH_mm_ss_SSS // SSS == milliseconds
Following the documentation, I got to this point (using stdFracSecond0):
format := "2006_01_02_15_04_05_.000"
fmt.Println(time.Now().Format(format))
Which outputs:
2021_06_18_10_21_19_.179
How can I remove the dot before the milliseconds value?
This does not work (millis are always zero):
format := "2006_01_02_15_04_05_000"
Playground example