[PATCH go-xml 1/4] doc: Handle conn.LookupDomainByName() error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Philipp Hahn <hahn@xxxxxxxxxxxxx>
---
 doc.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc.go b/doc.go
index 2886c79..f97f2eb 100644
--- a/doc.go
+++ b/doc.go
@@ -51,7 +51,7 @@
 //  )
 //
 //  conn, err := libvirt.NewConnect("qemu:///system")
-//  dom := conn.LookupDomainByName("demo")
+//  dom, err := conn.LookupDomainByName("demo")
 //  xmldoc, err := dom.GetXMLDesc(0)
 //
 //  domcfg := &libvirtxml.Domain{}
-- 
2.20.1


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux