Standard library / go/constant

go/constant.MakeUint64()

Create a nonnegative integer constant from uint64. Expected stdout: '9223372036854775808\n'.

Formal Syntax & Structure

go syntaxgo
func MakeUint64(x uint64) Value

Parameters & Attributes

NameTypeDescription
xuint64Input constant or Go value as specified by the function.

Return Value

Value

Create a nonnegative integer constant from uint64.

Working Example

Example Snippetgo
package main
import (  "fmt"  "go/constant")
func main() { fmt.Println(constant.MakeUint64(1 << 63)) }
Go Reference