go/doc/next/6-stdlib/99-minor
Ernesto Alejandro Santana Hidalgo 044ca4e5c8 log/slog: export Source method in Record for custom handler support
Currently, the `source` method in `slog.Record` is not accessible to
custom handlers, requiring developers to re-implement logic for
retrieving source location information. This commit exports the `source`
method as `Source`, enabling consistent access for custom logging
handlers and reducing code redundancy.

Fixes #70280

Change-Id: I3eb3bc60658abc5de95697a10bddd11ab54c6e13
GitHub-Last-Rev: bd81afe5a5
GitHub-Pull-Request: golang/go#70281
Reviewed-on: https://go-review.googlesource.com/c/go/+/626976
Reviewed-by: qiu laidongfeng2 <2645477756@qq.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2025-05-06 03:58:07 -07:00
..
archive/tar io/fs: add ReadLinkFS interface 2025-02-03 08:38:43 -08:00
crypto crypto/tls: relax native FIPS 140-3 mode 2025-03-13 13:33:22 -07:00
debug/elf debug/elf: add riscv attributes definitions 2025-03-14 15:08:23 -07:00
go api: move go1.25 to next/70250 2025-04-03 08:07:11 -07:00
io/fs io/fs: add ReadLinkFS interface 2025-02-03 08:38:43 -08:00
log/slog log/slog: export Source method in Record for custom handler support 2025-05-06 03:58:07 -07:00
mime/multipart mime/multipart: add helper to build content-disposition header contents 2025-03-12 16:20:01 -07:00
net net,os: support converting between *os.File and net.Conn on Windows 2025-05-05 04:05:18 -07:00
os os: support overlapped IO with NewFile 2025-04-04 14:00:21 -07:00
regexp/syntax regexp/syntax: recognize category aliases like \p{Letter} 2025-04-18 14:13:38 -07:00
sync sync: add WaitGroup.Go 2025-04-04 08:19:32 -07:00
testing/fstest io/fs: add ReadLinkFS interface 2025-02-03 08:38:43 -08:00
unicode unicode: add CategoryAliases, Cn, LC 2025-04-18 14:13:31 -07:00
0-heading.md doc: initialize next directory for Go 1.25 2025-02-03 07:52:07 -08:00
README doc: initialize next directory for Go 1.25 2025-02-03 07:52:07 -08:00

API changes and other small changes to the standard library go here.