Azure Storage Management SDK for Go

Getting Started

This SDK allows you to interact with Azure Storage services from your Go applications. It provides a simple and intuitive API for common storage operations.

                
                // Import the necessary packages
                import (
                    "context"
                    "fmt"
                    "github.com/Azure/azure-sdk-for-go/sdk/storage/azstorage"
                )

                // Create a new client
                client := azstorage.NewStorageClient("https://.blob.core.windows.net", context.TODO())

                // Example: Create a container
                containerName := "mycontainer"
                _, err := client.CreateContainer(containerName, nil)
                if err != nil {
                    fmt.Println("Error creating container:", err)
                }
                
            

Key Features

Dependencies

Ensure you have the latest version of the Azure SDK for Go installed. You can install it using Go modules:

                
                go get github.com/Azure/azure-sdk-for-go/sdk/storage
                
            

Download

View on GitHub

Version: 2.2.0 (as of November 3, 2023)