Source file src/internal/runtime/cgroup/export_test.go
1 // Copyright 2025 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package cgroup 6 7 type LineReader = lineReader 8 9 func (l *LineReader) Next() error { 10 return l.next() 11 } 12 13 func (l *LineReader) Line() []byte { 14 return l.line() 15 } 16 17 func NewLineReader(fd int, scratch []byte, read func(fd int, b []byte) (int, uintptr)) *LineReader { 18 return newLineReader(fd, scratch, read) 19 } 20 21 var ( 22 ErrEOF = errEOF 23 ErrIncompleteLine = errIncompleteLine 24 ) 25