hoanhan101 / ultimate-go

The Ultimate Go Study Guide

Home Page:https://gumroad.com/l/bpUYF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This fails in the current Go playground - https://play.golang.org

amitmurthy opened this issue · comments

fmt.Println(maxInt)

The above line fails with constant 9223372036854775807 overflows int when executed at https://play.golang.org

This is because of the Go Playground's 32-bit architecture. I would like to take your attention what is stated at line

// Max integer value on 64 bit architecture.
.

OK. My bad.