add

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: GPL-3.0 Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Brackets

func Brackets(
	contentSeparator *gostringsseparator.Content,
	content string,
) string

Brackets adds brackets to a string

func Characters

func Characters(
	contentSeparator *gostringsseparator.Content,
	content, leftCharacters, rightCharacters string,
) string

Characters adds some characters to a string

func CurlyBrackets

func CurlyBrackets(
	contentSeparator *gostringsseparator.Content,
	content string,
) string

CurlyBrackets adds curly brackets to a string

func Parentheses

func Parentheses(
	contentSeparator *gostringsseparator.Content,
	content string,
) string

Parentheses adds parentheses to a string

func Prefixes added in v0.1.5

func Prefixes(
	content string,
	separator gostringsseparator.Separator,
	prefixes ...string,
) string

Prefixes returns a string with the given content and prefixes

Types

type CharactersFn

type CharactersFn func(*gostringsseparator.Content, string) string

CharactersFn is a function that adds characters to a string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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