[libvirt-go PATCH] Import from libvirt.org instead of github.com

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

 



Since

  commit 201156ec6e65e08cdb04d6fdefe013652fb7fa87
  Author: Daniel P. Berrangé <berrange@xxxxxxxxxx>
  Date:   Mon Dec 16 10:06:50 2019 +0000

    docs: add pages to support Go module package resolution

it's possible to use

  import "libvirt.org/libvirt-go"

in Go programs, which will result in the Go bindings being
fetched directly from libvirt.org thus removing our reliance
on GitHub.

Update the documentation accordingly.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 README.md | 4 ++--
 doc.go    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index 326d6a0..c11e9ab 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# libvirt-go [![Build Status](https://travis-ci.org/libvirt/libvirt-go.svg?branch=master)](https://travis-ci.org/libvirt/libvirt-go) [![GoDoc](https://godoc.org/github.com/libvirt/libvirt-go?status.svg)](https://godoc.org/github.com/libvirt/libvirt-go)
+# libvirt-go [![Build Status](https://travis-ci.org/libvirt/libvirt-go.svg?branch=master)](https://travis-ci.org/libvirt/libvirt-go) [![GoDoc](https://godoc.org/libvirt.org/libvirt-go?status.svg)](https://godoc.org/libvirt.org/libvirt-go)
 
 Go bindings for libvirt.
 
@@ -32,7 +32,7 @@ changes may apply to future versions:
 
 ## Documentation
 
-* [api documentation for the bindings](https://godoc.org/github.com/libvirt/libvirt-go)
+* [api documentation for the bindings](https://godoc.org/libvirt.org/t libvirt-go)
 * [api documentation for libvirt](http://libvirt.org/html/libvirt-libvirt.html)
 
 ## Contributing
diff --git a/doc.go b/doc.go
index 55d75b0..35c9962 100644
--- a/doc.go
+++ b/doc.go
@@ -116,7 +116,7 @@
 // To connect to libvirt
 //
 //   import (
-//       libvirt "github.com/libvirt/libvirt-go"
+//       libvirt "libvirt.org/libvirt-go"
 //   )
 //   conn, err := libvirt.NewConnect("qemu:///system")
 //   if err != nil {
-- 
2.24.1





[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