package function



import (
"fmt"
"net/http"



"github.com/GoogleCloudPlatform/functions-framework-go/functions"
)



func init() {
functions.HTTP("HelloWorld", helloWorld)
}



// helloWorld writes "Hello, World!" to the HTTP response.
func helloWorld(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "Hello, World!")
}

so then your entry_point = “HelloWorld” That is the entrypoint from the init() NOT the function name

inspiration: