MCPcopy Create free account
hub / github.com/devspace-sh/devspace / NewScanner

Function NewScanner

pkg/util/scanner/scanner.go:9–15  ·  view source on GitHub ↗
(r io.Reader)

Source from the content-addressed store, hash-verified

7)
8
9func NewScanner(r io.Reader) *bufio.Scanner {
10 scanner := bufio.NewScanner(r)
11 buf := make([]byte, 0, 64*1024)
12 scanner.Buffer(buf, 1024*1024)
13 scanner.Split(ScanLines)
14 return scanner
15}
16
17// ScanLines is a split function for a Scanner that returns each line of
18// text, stripped of any trailing end-of-line marker. The returned line may

Callers 8

StartLogsFunction · 0.92
ParseDevSpaceHostsFunction · 0.92
includeDevSpaceConfigFunction · 0.92
addHostFunction · 0.92
StartStreamFunction · 0.92
executeMethod · 0.92
PrintTableWithOptionsFunction · 0.92
WriterMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected