secret - Prevent your secrets from leaking into logs and std*
The package provides the type Secret
for storing passwords and credentials. Using this type allows the actual secret string to be automatically redacted from printing and marshaling processes. See Go docs for example usage.