Standard library / log/slog

slog.Uint64Value()

Construct an unkeyed Uint64 value for use in an attribute. Expected stdout: '2\n'.

Formal Syntax & Structure

go syntaxgo
func Uint64Value(v uint64) Value

Parameters & Attributes

NameTypeDescription
vuint64Values to log or convert.

Return Value

Value

Construct an unkeyed Uint64 value for use in an attribute.

Working Example

Example Snippetgo
package main
import (  "fmt"  "log/slog")
func main() { fmt.Println(slog.Uint64Value(uint64(2))) }
Go Reference