Documentation
¶
Overview ¶
Package redact is a helper internal package that provides the Unsafe and Safe value wrappers. Its name is 'redact' even though a better name would be 'wrappers' so as to ensure that the type name of generated values contains the 'redact.' prefix.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Safe ¶
Safe turns any value into an object that is considered as safe by the formatter.
This is provided as an “escape hatch” for cases where the other interfaces and conventions fail. Increased usage of this mechanism should be taken as a signal that a new abstraction is missing. The implementation is also slow.
Types ¶
type SafeWrapper ¶
type SafeWrapper = safeWrapper
SafeWrapper is the type of wrapper produced by Safe. This is exported only for use by the rfmt package. Client packages should not make assumptions about the concrete return type of Safe().
type UnsafeWrap ¶
type UnsafeWrap = unsafeWrap
UnsafeWrap is the type of wrapper produced by Unsafe. This is exported only for use by the rfmt package. Client packages should not make assumptions about the concrete return type of Unsafe().