How can I print out an constant uint64 in Go using fmt?
math.MaxUint64 is a constant, not an int64. Try instead: fmt.Printf(“%d”, uint64(num)) The issue here is that the constant is untyped. The constant will assume a type depending on the context in which it is used. In this case, it is being used as an interface{} so the compiler has no way of knowing what concrete … Read more