Exercises & activities from the go workshop provided by Packt: https://courses.packtpub.com/courses/go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

21 lines
284 B

package main
import (
"fmt"
"math"
"math/big"
)
func main() {
intA := math.MaxInt64
intA++
bigA := big.NewInt(math.MaxInt64)
bigA.Add(bigA, big.NewInt(1))
fmt.Println("MaxInt64:", math.MaxInt64)
fmt.Println("Int: ", intA)
fmt.Println("Big Int: ", bigA)
}