Documentation
¶
Index ¶
- func MaskAndUserTagArguments(args, flagsToTag, flagsToMask []string) string
- func MaskAndUserTagCBMArguments(args []string) string
- func MaskArguments(args, flagsToMask []string) []string
- func MaskCBMArguments(args []string) []string
- func UserData(key, value string) slog.Attr
- func UserTagArguments(args, flagsToTag []string) []string
- func UserTagCBMArguments(args []string) []string
- type UserDataValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaskAndUserTagArguments ¶
MaskAndUserTagArguments is a convenient way of calling both UserTagArguments and MaskArguments on the given data. It will return the resulting string slice joined with a space between element for easy logging.
func MaskArguments ¶
MaskArguments returns a new slice with the values of the flags given in flagsToMask replaced by a fix number of *.
func MaskCBMArguments ¶
func UserData ¶ added in v2.1.0
UserData returns an Attr for a string value that should be treated as user data.
func UserTagArguments ¶
UserTagArguments returns a new slice with the values for the flags given in flagsToTag surrounded by the <ud></ud> tags.
func UserTagCBMArguments ¶
Types ¶
type UserDataValue ¶ added in v2.1.0
type UserDataValue string
UserDataValue is a string that should be treated as user data, and therefore tagged as such in the logs.
func (UserDataValue) LogValue ¶ added in v2.1.0
func (u UserDataValue) LogValue() slog.Value
Click to show internal directories.
Click to hide internal directories.