From f05ab1d4ac388b11819f63ea99444b885ddde9aa Mon Sep 17 00:00:00 2001 From: Robert Xu Date: Sat, 19 Jul 2014 21:32:07 -0400 Subject: [PATCH] Rename VirStream's Finish() to Close() for io.Closer --- stream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream.go b/stream.go index d5036e3..7420d1c 100644 --- a/stream.go +++ b/stream.go @@ -37,7 +37,7 @@ func (v *VirStream) Abort() error { return nil } -func (v *VirStream) Finish() error { +func (v *VirStream) Close() error { result := C.virStreamFinish(v.ptr) if result == -1 { return errors.New(GetLastError())