summaryrefslogtreecommitdiff
path: root/libvirt/stream.go
diff options
context:
space:
mode:
authorDario Maiocchi <dmaiocchi@suse.com>2017-11-12 19:50:51 +0100
committerDario Maiocchi <dmaiocchi@suse.com>2017-11-16 15:11:04 +0100
commit3a4cd93e91aad054f89491e9f91fba6cf92dbc19 (patch)
tree286d4f3913968f3706b0f286c76b6c08a8e5c611 /libvirt/stream.go
parent1205df84cacd81887839c31572952dc21065da77 (diff)
downloadterraform-provider-libvirt-3a4cd93e91aad054f89491e9f91fba6cf92dbc19.tar
terraform-provider-libvirt-3a4cd93e91aad054f89491e9f91fba6cf92dbc19.tar.gz
golint on resource_libvirt_domain_test.go
Use correct names in comments
Diffstat (limited to 'libvirt/stream.go')
-rw-r--r--libvirt/stream.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/libvirt/stream.go b/libvirt/stream.go
index 1c5a24e9..4223466c 100644
--- a/libvirt/stream.go
+++ b/libvirt/stream.go
@@ -2,12 +2,12 @@ package libvirt
import libvirt "github.com/libvirt/libvirt-go"
-// StreamIO struct
+// StreamIO libvirt struct
type StreamIO struct {
Stream libvirt.Stream
}
-// NewStreamIO return libvirt StreamIO
+// NewStreamIO returns libvirt StreamIO
func NewStreamIO(s libvirt.Stream) *StreamIO {
return &StreamIO{Stream: s}
}
@@ -20,7 +20,7 @@ func (sio *StreamIO) Write(p []byte) (int, error) {
return sio.Stream.Send(p)
}
-// Close StreamIO
+// Close closes the stream
func (sio *StreamIO) Close() error {
return sio.Stream.Finish()
}