Registry /
cloud / azure-azure-storage-blob-go
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
azblob
✓ github.com/Azure/azure-storage-blob-go
Create a container in Azure Blob Storage.
package main
import (
"context"
"github.com/Azure/azure-storage-blob-go/azblob"
)
func main() {
accountName, accountKey := "myaccount", "mykey"
credential, _ := azblob.NewSharedKeyCredential(accountName, accountKey)
pipeline := azblob.NewPipeline(credential, azblob.PipelineOptions{})
containerURL, _ := azblob.NewContainerURL("https://"+accountName+".blob.core.windows.net/mycontainer", pipeline)
_, _ = containerURL.Create(context.TODO(), azblob.Metadata{}, azblob.PublicAccessNone)
}
Upgrade
Version history
0.15.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.