chore(functions/http): Update xml sample to use gen2 signature
@@ -23,8 +23,14 @@ import (
"html"
"io/ioutil"
"net/http"
+
+ "github.com/GoogleCloudPlatform/functions-framework-go/functions"
)
+func init() {
+ functions.HTTP("ParseXML", ParseXML)
+}
+
// ParseXML is an example of parsing a text/xml request.
func ParseXML(w http.ResponseWriter, r *http.Request) {
var d struct {
