Skip to content

Convert nano time to string return garbage? #39089

@proyb6

Description

@proyb6

What version of Go are you using (go version)?

1.14.3

Does this issue reproduce with the latest release?

I think earlier may have the same issue, I have checked other repos have used the same approach.

What operating system and processor architecture are you using (go env)?

NA

What did you do?

Converting nano time to string

fmt.Println(string(time.Now().UnixNano()))

What did you expect to see?

As expected number return by nano time.

What did you see instead?

A question mark character

https://play.golang.com/p/7NfnDfYy4_N

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions