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) ValueParameters & Attributes
| Name | Type | Description |
|---|---|---|
| v | uint64 | Values 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))) }