stringseq

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package stringseq provides functions for converting iterator sequences to strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(b *strings.Builder, seq iter.Seq[string], sep string)

Append appends the elements of its second argument to the given string builder. The separator string sep is placed between elements in the resulting string.

func AppendStringer

func AppendStringer[T fmt.Stringer](b *strings.Builder, seq iter.Seq[T], sep string)

AppendStringer appends the stringified elements of its second argument to the given string builder. The separator string sep is placed between elements in the resulting string.

func Join

func Join(seq iter.Seq[string], sep string) string

Join concatenates the elements of its first argument to create a single string. The separator string sep is placed between elements in the resulting string.

func JoinStringer

func JoinStringer[T fmt.Stringer](seq iter.Seq[T], sep string) string

JoinStringer concatenates the stringified elements of its first argument to create a single string. The separator string sep is placed between elements in the resulting string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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