envconfigext

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StructFieldScan

func StructFieldScan(iface any) string

StructFieldScan is an opinionated struct to string converter with optional field value masking made especially for pretty printing configurations. It's not performance optimized so should be used with care.

Types

type FileContent

type FileContent []byte

FileContent holds the content of a file read either from filesystem path or string (plain or base64 encoded).

func (*FileContent) UnmarshalText

func (fc *FileContent) UnmarshalText(text []byte) error

UnmarshalText implements `encoding.TextUnmarshaler` interface for reading file content from FS or string.

type X509Cert

type X509Cert x509.Certificate

X509Cert is a `x509.Certificate` read either from filesystem path or string (plain or base64 encoded).

func (*X509Cert) String

func (c *X509Cert) String() string

String implements `fmt.Stringer` interface.

func (*X509Cert) UnmarshalText

func (c *X509Cert) UnmarshalText(text []byte) error

UnmarshalText implements `encoding.TextUnmarshaler` interface for reading X509 certificate from FS or string.

Jump to

Keyboard shortcuts

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