From 137708df186982c9b60a4f0843ca6b6cbefa8c2a Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Sun, 19 Apr 2026 00:47:31 +0200 Subject: change module path to go.xyrillian.de/schwift/v2 --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index d7f9f83..1ff26f1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Schwift -[![GoDoc](https://godoc.org/github.com/majewsky/schwift?status.svg)](https://godoc.org/github.com/majewsky/schwift) +[![GoDoc](https://godoc.org/go.xyrillian.de/schwift/v2?status.svg)](https://godoc.org/go.xyrillian.de/schwift/v2) This is a Go client library for [OpenStack Swift](https://github.com/openstack/swift). I made this after growing frustrated with the inflexible API design of [`ncw/swift`](https://github.com/ncw/swift); see [near the @@ -8,7 +8,7 @@ bottom](#why-another-swift-client-library) for details. ## Installation -You can get this with `go get github.com/majewsky/schwift`. When using this in an application, vendoring is recommended. +You can get this with `go get go.xyrillian.de/schwift/v2`. When using this in an application, vendoring is recommended. ## Usage @@ -18,9 +18,9 @@ For example, to connect to Swift using OpenStack Keystone authentication: ```go import ( - "github.com/gophercloud/gophercloud" - "github.com/gophercloud/gophercloud/openstack" - "github.com/majewsky/schwift/gopherschwift" + "github.com/gophercloud/gophercloud/v2" + "github.com/gophercloud/gophercloud/v2/openstack" + "go.xyrillian.de/schwift/v2/gopherschwift" ) authOptions, err := openstack.AuthOptionsFromEnv() @@ -34,9 +34,9 @@ To connect to Swift using Swift's built-in authentication: ```go import ( - "github.com/gophercloud/gophercloud/openstack" - "github.com/gophercloud/gophercloud/openstack/objectstore/v1/swauth" - "github.com/majewsky/schwift/gopherschwift" + "github.com/gophercloud/gophercloud/v2/openstack" + "github.com/gophercloud/gophercloud/v2/openstack/objectstore/v1/swauth" + "go.xyrillian.de/schwift/v2/gopherschwift" ) provider, err := openstack.NewClient("http://swift.example.com:8080") @@ -48,7 +48,7 @@ client, err := swauth.NewObjectStorageV1(provider, swauth.AuthOpts { account, err := gopherschwift.Wrap(client, nil) ``` -From this point, follow the [API documentation](https://godoc.org/github.com/majewsky/schwift) for what you can do with +From this point, follow the [API documentation](https://pkg.go.dev/go.xyrillian.de/schwift/v2) for what you can do with the `schwift.Account` object. For example, to download an object's contents into a string: ```go -- cgit v1.2.3