'text/template: pattern matches no files: `templates/*.gohtml` exit status 1 in Go

I can't understand what is the problem here. trying to perse .gohtml file. Unfortunately, whenever run the program shows this error:

template: pattern matches no files: `templates/*.gohtml` exit status 1

here is my code snippet of templateprocess.go

package main

import (
    "log"
    "os"
    "text/template"
)

func main() {
    template1, err := template.ParseGlob("templates/*.gohtml")

    if err != nil {
        log.Fatalln(err)
    }

    template1.ExecuteTemplate(os.Stdout, "index.gohtml", nil)
}

Go version 1.18.

please help me out.

My file structure is shown below



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source