Movatterモバイル変換


[0]ホーム

URL:


lineread

package
v1.92.3Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License:BSD-3-ClauseImports:3Imported by:20

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package lineread reads lines from files. It's not fancy, but it got repetitive.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcFile

func File(namestring, fn func(line []byte)error)error

File opens name and calls fn for each line. It returns an error if the Open failedor once fn returns an error.

funcReader

func Reader(rio.Reader, fn func(line []byte)error)error

Reader calls fn for each line.If fn returns an error, Reader stops reading and returns that error.Reader may also return errors encountered reading and parsing from r.To stop reading early, use a sentinel "stop" error value and ignoreit when returned from Reader.

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp