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: DeleteAlarm.go
    path of file: ./repos/aws-doc-sdk-examples/go/cloudwatch/DeleteAlarm
    
    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:[cloudwatch.go.delete_alarm]
package main

// snippet-start:[cloudwatch.go.delete_alarm.imports]
import (
	"flag"
	"fmt"

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

// snippet-end:[cloudwatch.go.delete_alarm.imports]

// DeleteAlarm deletes an alarm
// Inputs:
//
//	sess is the current session, which provides configuration for the SDK's service clients
//	alarmName is the name of the alarm
//
// Output:
//
//	If successful, nil
//	
    
func main() {
	// snippet-start:[cloudwatch.go.delete_alarm.args]
	alarmName := flag.String("a", "", "The name of the alarm to delete")
	flag.Parse()

	if *alarmName == "" {
		fmt.Println("You must supply an alarm name to disable")
		return
	}
	// snippet-end:[cloudwatch.go.delete_alarm.args]

	// Initialize a session that the SDK uses to load
	// credentials from the shared credentials file ~/.aws/credentials
	// and configuration from the shared configuration file ~/.aws/config.
	// snippet-start:[cloudwatch.go.delete_alarm.session]
	sess := session.Must(session.NewSessionWithOptions(session.Options{
		SharedConfigState: session.SharedConfigEnable,
	}))
	// snippet-end:[cloudwatch.go.delete_alarm.session]

	err := DeleteAlarm(sess, alarmName)
	if err != nil {
		fmt.Println("Could not delete alarm " + *alarmName)
	} else {
		fmt.Println("Deleted alarm " + *alarmName)
	}
}