Standard library / log/slog
slog.SourceKey
Built-in handler attribute key for source. Expected stdout: 'source\n'.
Formal Syntax & Structure
go syntaxgo
const SourceKey = "source"Working Example
Example Snippetgo
package main
import ( "fmt" "log/slog")
func main() { fmt.Println(slog.SourceKey) }