azqlite is a lightweight wrapper around github.com/Azure/azure-storage-queue-go to interact with the Azure Storage Queue service in a simpler and more idiomatic way.
go get github.com/josebalius/azqlite
client, err := azqlite.NewClient(azqlite.Config{
AccountName: "YOUR_AZURE_STORAGE_ACCOUNT_NAME_HERE",
AccountKey: "YOUR_AZURE_STORAGE_ACCOUNT_KEY_HERE",
})
q, err := client.CreateQueue(ctx, "test")
err = c.DeleteQueue(ctx, "test")
q := c.GetQueue("test")
c, err := q.MessageCount(ctx)
m, err := q.Enqueue(ctx, "my message", 1*time.Second, -time.Second)
messages, err := q.Dequeue(ctx, 30, 1*time.Second)
messages, err := q.Peek(ctx, 30)
err := q.Delete(ctx, &Message{ID: "1"})