stringio

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package stringio contains helpers for string I/O.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(w Writer, strings ...string) (int, error)

Write writes strings to w, returning the total bytes written and/or an error.

Types

type Writer

type Writer interface {
	WriteString(string) (int, error)
}

Writer is the interface implemented by anything that can write strings, such as bytes.Buffer or strings.Builder.

Jump to

Keyboard shortcuts

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