You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ListBuckets.go
    path of file: ./repos/aws-doc-sdk-examples/go/s3/ListBuckets
    
    the code of the file until where you have to start completion: // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// snippet-start:[s3.go.list_buckets]
package main

// snippet-start:[s3.go.list_buckets.imports]
import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/s3"
)

// snippet-end:[s3.go.list_buckets.imports]

// GetAllBuckets retrieves a list of all buckets.
// Inputs:
//
//	sess is the current session, which provi
    
func main() {
	// snippet-start:[s3.go.list_buckets.imports.session]
	sess := session.Must(session.NewSessionWithOptions(session.Options{
		SharedConfigState: session.SharedConfigEnable,
	}))
	// snippet-end:[s3.go.list_buckets.imports.session]

	result, err := GetAllBuckets(sess)
	if err != nil {
		fmt.Println("Got an error retrieving buckets:")
		fmt.Println(err)
		return
	}

	// snippet-start:[s3.go.list_buckets.imports.print]
	fmt.Println("Buckets:")

	for _, bucket := range result.Buckets {
		fmt.Println(*bucket.Name + ": " + bucket.CreationDate.Format("2006-01-02 15:04:05 Monday"))
	}
	// snippet-end:[s3.go.list_buckets.imports.print]
}