bootstrap remove placeholder on input

package main

import (
    "fmt"
    "net/http"
    "text/template"
)

func main() {
    http.HandleFunc("/", handler)
    http.ListenAndServe(":8080", nil)
}

func handler(w http.ResponseWriter, r *http.Request) {
    if r.Method == "GET" {
        renderTemplate(w)
    } else {
        r.ParseForm()
        // Process the form data here
        // For example, you can access the value of the input field with name "inputField" using r.Form.Get("inputField")
        // Handle the form submission logic as needed
        // After processing, you may redirect or render a response as appropriate
        // For now, let's render the template again
        renderTemplate(w)
    }
}

func renderTemplate(w http.ResponseWriter) {
    tmpl, err := template.New("index").Parse(`
        <!DOCTYPE html>
        <html lang="en">
        <head>
            <meta charset="UTF-8">
            <meta name="viewport" content="width=device-width, initial-scale=1.0">
            <title>Bootstrap Remove Placeholder</title>
            <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
        </head>
        <body>
            <div class="container mt-5">
                <form method="post" action="/">
                    <div class="form-group">
                        <label for="inputField">Input Field</label>
                        <input type="text" class="form-control" id="inputField" name="inputField" placeholder="">
                    </div>
                    <button type="submit" class="btn btn-primary">Submit</button>
                </form>
            </div>
            <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
            <script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
            <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
        </body>
        </html>
    `)
    if err != nil {
        fmt.Println("Error rendering template:", err)
        return
    }

    err = tmpl.Execute(w, nil)
    if err != nil {
        fmt.Println("Error executing template:", err)
    }
}