Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StructFieldScan ¶
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) UnmarshalText ¶
UnmarshalText implements `encoding.TextUnmarshaler` interface for reading X509 certificate from FS or string.
Click to show internal directories.
Click to hide internal directories.