You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
432 B
Go

package iperf
import (
"bufio"
"fmt"
"io"
)
type SharedOptions struct {
Id string
Port *int
Format *rune
Interval *int
}
type DebugScanner struct {
}
func (ds *DebugScanner) Scan(buff io.ReadCloser) {
if buff == nil {
fmt.Println("unable to read, ReadCloser is nil")
return
}
scanner := bufio.NewScanner(buff)
scanner.Split(bufio.ScanWords)
for scanner.Scan() {
text := scanner.Text()
fmt.Println(text)
}
}