join

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 4 Imported by: 0

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 JoinCondenseTrimSpace

func JoinCondenseTrimSpace(slice []string, sep string) string

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