I have created a program which converts int64 to binary:
package main
import (
"fmt"
"strconv"
)
func main() {
n := int64(3)
fmt.Println(strconv.FormatInt(n, 2))
}
And it returns this value:
11
How can I keep the leading zeros in the answer?
Thanks in advance!