secret

package
v1.0.7097-a3fa483 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 0 Imported by: 4

Documentation

Overview

Package secret contains a struct to store secrets in that won't accidentally let them be logged.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type String

type String string

func (String) Get

func (s String) Get() interface{}

Get is used by pqx before any other type checks to get the underlying type

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