Вот мой пример кода для вас. Надеюсь, это поможет.
package main
import (
"context"
"fmt"
"log"
"net/url"
"github.com/Azure/azure-storage-file-go/azfile"
)
func main() {
accountName, accountKey := "<your account name>", "<your account key>"
credential, _ := azfile.NewSharedKeyCredential(accountName, accountKey)
serviceURL, _ := url.Parse("https://<your account name>.file.core.windows.net/")
p := azfile.NewPipeline(credential, azfile.PipelineOptions{})
service := azfile.NewServiceURL(*serviceURL, p)
list, _ := service.ListSharesSegment(context.Background(), azfile.Marker{}, azfile.ListSharesOptions{})
for i, item := range list.ShareItems {
fmt.Println(i, item)
}
}