Re: HELP!

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

 



Please consider writing more descriptive subjects.  No need to shout, too.

On Fri, Feb 15, 2019 at 08:43:36PM +0530, Shashwat shagun wrote:

[...]

func (d *DomService) Connect() error {
       var err error
       d.Conn, err = libvirt.NewConnect("qemu:///system")
       if err != nil {
               fmt.Println(err)
       }
defer d.Conn.Close()

I have no idea how the golang bindings are structured, but I'm quite sure you
don't want to close the connection right after this function ends...

Attachment: signature.asc
Description: PGP signature

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux