News for hackers. Stuff that matters.
Re:Go Proposal: Secret Mode by kbolino on Saturday December 13, 2025 @01:53PM (#46256920)
This is not what secret.Enabled() means. But it probably illustrates that the function needs to be renamed already. Here's what the doc comment says:

  // Enabled reports whether Do appears anywhere on the call stack.
In other words, it is just a way of checking that you are indeed running inside the context of some secret.Do call; it doesn't guarantee that secret.Do is actually offering the protection you may desire.
Re:Go Proposal: Secret Mode by cafxx on Saturday December 13, 2025 @07:18PM (#46259581)
That's not how it's implemented (it returns false if you're inside a Do() on a unsupported platform), although I agree the wording should be clearer.
Re:Go Proposal: Secret Mode by cafxx on Sunday December 14, 2025 @08:11PM (#46269120)
Filed a CL for this, hopefully it gets merged ~soon.

https://go-review.googlesource.com/c/go/+/729920