type Token … // LogValue implements slog.LogValuer. // It avoids revealing the token. func (Token) LogValue() slog.Value { … } // This example demonstrates a Value that replaces itself // with an alternative representation to avoid revealing secrets. func ExampleLogValuer_secret() { … }