Debian Codegraph @

closer.go

raw symbols SCIP
1 package rsyncscip-go gomod github.com/gokrazy/rsync . `github.com/gokrazy/rsync`/
2
3 import "ioscip-go gomod github.com/golang/go/src go1.25.0 io/"
4
5 // BothCloser is a wrapper around a ReadCloser and WriteCloser that provides its
6 // own Close() function which calls Close() on both, the WriteCloser and
7 // ReadCloser, in order, and returns the first non-nil error.
8 type BothCloserscip-go gomod github.com/gokrazy/rsync . `github.com/gokrazy/rsync`/BothCloser# struct {
9 ioscip-go gomod github.com/golang/go/src go1.25.0 io/.ReadCloserscip-go gomod github.com/gokrazy/rsync . `github.com/gokrazy/rsync`/BothCloser#ReadCloser.
10 ioscip-go gomod github.com/golang/go/src go1.25.0 io/.WriteCloserscip-go gomod github.com/gokrazy/rsync . `github.com/gokrazy/rsync`/BothCloser#WriteCloser.
11 }
12
13 // Close implements io.Closer.
14 func (b *BothCloserscip-go gomod github.com/gokrazy/rsync . `github.com/gokrazy/rsync`/BothCloser#) Closescip-go gomod github.com/gokrazy/rsync . `github.com/gokrazy/rsync`/BothCloser#Close().() error {
15 wcErr := b.WriteCloserscip-go gomod github.com/gokrazy/rsync . `github.com/gokrazy/rsync`/BothCloser#WriteCloser..Closescip-go gomod github.com/golang/go/src go1.25.0 io/Closer#Close().()
16 rcErr := b.ReadCloserscip-go gomod github.com/gokrazy/rsync . `github.com/gokrazy/rsync`/BothCloser#ReadCloser..Closescip-go gomod github.com/golang/go/src go1.25.0 io/Closer#Close().()
17 if wcErr != nil {
18 return wcErr
19 }
20 return rcErr
21 }