join

package
v0.37.9 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinAny

func JoinAny(a []interface{}, sep string) string

JoinAny takes an array of interface{} and converts each value to a string using fmt.Sprintf("%v")

func JoinInt

func JoinInt(a []int, sep string) string

func JoinMore

func JoinMore(slice []string, cfg JoinMoreOpts) []string

func JoinQuote

func JoinQuote(slice []string, begQuote, endQuote, sep string) string

func JoinQuoteMaxLength

func JoinQuoteMaxLength(slice []string, begQuote, endQuote, sep string, maxLength int) []string

func JoinQuoteMaxLengthTrimSpaceSkipEmpty

func JoinQuoteMaxLengthTrimSpaceSkipEmpty(slice []string, begQuote, endQuote, sep string, maxLength int) []string

func JoinQuoteTrimSpaceSkipEmpty

func JoinQuoteTrimSpaceSkipEmpty(slice []string, begQuote, endQuote, sep string) string

Types

type JoinMoreOpts

type JoinMoreOpts struct {
	QuoteBegin string
	QuoteEnd   string
	Separator  string
	MaxLength  int
	TrimSpace  bool
	SkipEmpty  bool
}

Jump to

Keyboard shortcuts

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