secret

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Secret is a package for types that make it harder to accidentally expose secret variables when passing them around.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type String

type String string

func (String) GoString

func (s String) GoString() string

GoString implements fmt.GoStringer and redacts the sensitive value.

func (String) MarshalJSON

func (s String) MarshalJSON() ([]byte, error)

func (String) String

func (s String) String() string

String implements fmt.Stringer and redacts the sensitive value.

func (String) Value

func (s String) Value() string

Value returns the sensitive value as a string.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL