strings

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBrackets

func AddBrackets(
	contentSeparator *gologgerseparator.Content,
	content string,
) string

AddBrackets adds brackets to a string

func AddCharacters

func AddCharacters(
	contentSeparator *gologgerseparator.Content,
	content, leftCharacters, rightCharacters string,
) string

AddCharacters adds some characters to a string

func AddCurlyBrackets

func AddCurlyBrackets(
	contentSeparator *gologgerseparator.Content,
	content string,
) string

AddCurlyBrackets adds curly brackets to a string

func AddParentheses

func AddParentheses(
	contentSeparator *gologgerseparator.Content,
	content string,
) string

AddParentheses adds parentheses to a string

func FormatErrorArray

func FormatErrorArray(
	multilineSeparator *gologgerseparator.Multiline,
	errorArray *[]error,
	addCharactersFn AddCharactersFn,
) string

FormatErrorArray returns a string with all the errors in the array formatted

func FormatStatus

func FormatStatus(
	contentSeparator *gologgerseparator.Content,
	status gologgerstatus.Status,
	addCharactersFn AddCharactersFn,
) string

FormatStatus gets the formatted status

func FormatString added in v0.4.0

func FormatString(
	contentSeparator *gologgerseparator.Content,
	content string,
	addCharactersFn AddCharactersFn,
) string

FormatString returns a formatted string

func FormatStringArray

func FormatStringArray(
	multilineSeparator *gologgerseparator.Multiline,
	stringArray *[]string,
	addCharactersFn AddCharactersFn,
) string

FormatStringArray returns a string with all the strings in the array formatted

func MapErrorArrayToStringArray

func MapErrorArrayToStringArray(errorArray *[]error) *[]string

MapErrorArrayToStringArray maps an array of errors to an array of strings

Types

type AddCharactersFn added in v0.4.0

type AddCharactersFn func(*gologgerseparator.Content, string) string

AddCharactersFn is a function that adds characters to a string

Jump to

Keyboard shortcuts

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