I have a go program like this,
package main
import "fmt"
import "time"
func main() {
s := strconv.Itoa64(time.Nanoseconds())
fmt.Println(s)
}
Here, in my system, the output is 19 digits nanoseconds. Now, I want to get the time like digits after 7 to 12 of those nanoseconds. Can anybody help how can it be possible in Go ?
NB: I want digits from 7 to 12 because in my system, time differs between them means other digits are same, so for me not needed. And formatting inside println is not required because I give example just to clarify my code. Actually, I will use formatted time for another purpose. I need it in s :=.