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: CopySnapshotToS3.go
    path of file: ./repos/aws-doc-sdk-examples/go/rds/CopySnapshotToS3
    
    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: MIT-0
// snippet-start:[rds.go.copy_snapshot_to_s3]
package main

// snippet-start:[rds.go.copy_snapshot_to_s3.imports]
import (
    "flag"
    "fmt"
    "strings"
    "time"

    "github.com/aws/aws-sdk-go/aws"
    "github.com/aws/aws-sdk-go/aws/session"
    "github.com/aws
    
func StoreInstance(svc rdsiface.RDSAPI, rdsSnapshotName, exportRDSSnapshotName, roleArn, kmsKey, bucketName *string) (*rds.StartExportTaskOutput, error) {
    // snippet-start:[rds.go.copy_snapshot_to_s3.get_snapshots]
    result, err := svc.DescribeDBSnapshots(nil)
    // snippet-end:[rds.go.copy_snapshot_to_s3.get_snapshots]
    if err != nil {
        return nil, err
    }

    // snippet-start:[rds.go.copy_snapshot_to_s3.call]
    currentTime := time.Now()
    snapshotTime := currentTime.Format("2006-01-02")
    rdsSnapshot := *rdsSnapshotName + snapshotTime
    IndentifierSnapshotTime := currentTime.Format("20060102")
    exportIdentifier := *exportRDSSnapshotName + IndentifierSnapshotTime

    // Get latest snapshot from RDS snapshot list
    for _, s := range result.DBSnapshots {
        if strings.Contains(*s.DBSnapshotArn, rdsSnapshot) {
            result, err := svc.StartExportTask(&rds.StartExportTaskInput{
                ExportTaskIdentifier: aws.String(exportIdentifier),
                IamRoleArn:           roleArn,
                KmsKeyId:             kmsKey,
                S3BucketName:         bucketName,
                SourceArn:            aws.String(*s.DBSnapshotArn),
            })
            // snippet-end:[rds.go.copy_snapshot_to_s3.call]
            return result, err
        }
    }

    return nil, nil
}