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: CreateInstance.go
    path of file: ./repos/aws-doc-sdk-examples/go/ec2/CreateInstance
    
    the code of the file until where you have to start completion: // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// S
    
func main() {
    // snippet-start:[ec2.go.create_instance_with_tag.args]
    name := flag.String("n", "", "The name of the tag to attach to the instance")
    value := flag.String("v", "", "The value of the tag to attach to the instance")
    flag.Parse()

    if *name == "" || *value == "" {
        fmt.Println("You must supply a name and value for the tag (-n NAME -v VALUE)")
        return
    }
    // snippet-end:[ec2.go.create_instance_with_tag.args]

    // snippet-start:[ec2.go.create_instance_with_tag.session]
    sess := session.Must(session.NewSessionWithOptions(session.Options{
        SharedConfigState: session.SharedConfigEnable,
    }))

    svc := ec2.New(sess)
    // snippet-end:[ec2.go.create_instance_with_tag.session]

    result, err := MakeInstance(svc, name, value)
    if err != nil {
        fmt.Println("Got an error creating an instance with tag " + *name)
        return
    }

    fmt.Println("Created tagged instance with ID " + *result.Instances[0].InstanceId)
}