Maint: dns package interface rework

- return concrete struct type
- split interface is sub-interfaces
This commit is contained in:
Quentin McGaw (desktop)
2021-07-23 18:57:29 +00:00
parent 9436f604ba
commit 02492c34a7
9 changed files with 47 additions and 23 deletions

View File

@@ -8,7 +8,7 @@ import (
"github.com/qdm12/golibs/logging"
)
func (l *looper) collectLines(stdout, stderr <-chan string, done chan<- struct{}) {
func (l *Loop) collectLines(stdout, stderr <-chan string, done chan<- struct{}) {
defer close(done)
var line string
var ok bool