gitlab.com/evatix-go/core@v1.3.55/coreappend/AppendAnyItemsToStringSkipOnNil.go (about)

     1  package coreappend
     2  
     3  import "strings"
     4  
     5  func AppendAnyItemsToStringSkipOnNil(
     6  	joiner string,
     7  	appendItem interface{},
     8  	anyItems ...interface{},
     9  ) string {
    10  	slice := PrependAppendAnyItemsToStringsSkipOnNil(
    11  		nil,
    12  		appendItem,
    13  		anyItems...)
    14  
    15  	return strings.Join(slice, joiner)
    16  }