package main import ( "fmt" "math/big" ) func main() { num1 := big.NewInt(1234567890) num2 := big.NewInt(987654321) mod := big.NewInt(0) mod.Mod(num1, num2) fmt.Println(mod) }
package main import ( "fmt" "math/big" ) func main() { num1 := big.NewInt(12345678901234567890) num2 := big.NewInt(9876543210123456789) mod := big.NewInt(0) mod.Mod(num1, num2) fmt.Println(mod) }Output: 2834290628345019429 The package library for the math.big Int Mod function is "math/big".