format

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorArray

func ErrorArray(
	multilineSeparator *gostringsseparator.Multiline,
	errorArray []error,
	addCharactersFn gostringsadd.CharactersFn,
) string

ErrorArray returns a formatted string containing all error messages from the given error array.

Parameters:

multilineSeparator - pointer to a Multiline separator that defines how to format the string
errorArray         - Slice of errors to be formatted
addCharactersFn    - function that adds characters to the formatted string

Returns:

A formatted string with all the error messages, or an empty string if the array is nil or empty.

func StringArray

func StringArray(
	multilineSeparator *gostringsseparator.Multiline,
	stringArray []string,
	addCharactersFn gostringsadd.CharactersFn,
) string

StringArray returns a formatted string containing all elements of the given string array.

Parameters:

multilineSeparator - pointer to a Multiline separator that defines how to format the string
stringArray        - Slice of strings to be formatted
addCharactersFn    - function that adds characters to the formatted string

Returns:

A formatted string with all the strings in the array, or an empty string if the array is nil or empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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