Re: [go-nuts] Logging best practices with log/slog

2025-04-02 Thread Mike Schinkel
> On Apr 1, 2025, at 3:50 AM, robert engels wrote: > > I don’t think this is that complicated. ... > > slog already has the infrastructure to support additional handlers which I > think is all that is needed to support custom requirements - aka side effects > - of external libraries. Hmm. Ok

[go-nuts] How to parse IDP extension information in a CRL using Go

2025-04-02 Thread 'Qianxin Cheng' via golang-nuts
开发人员,我在 Go 中编写了一段代码来解析 CRL 中的 IDP 扩展信息,但在解析 DistributionPoint 时遇到了错误。我已经尝试了几次,但一直无法让它工作。您能帮我确定这段代码有什么问题吗? package main import ( “crypto/x509”, “crypto/x509/pkix”, “encoding/asn1”, “flag”, “fmt” , “os” ) type IssuingDistributionPoint struct { DistributionPoint asn1.RawValue 'asn1:“optional,tag:0,