I have created a simple hello-world function via func create -l go and can successfully run it locally and have it deployed in k8s.
The function is not invoked if I call http://localhost:8080/some-random-path.
I suspect there is an option to configure this in the func.yml? I have not yet found any reference or documentation about this topic on the knative documentation page.
Looking at the documentation generated alongside the
func'sgotemplate, it looks like a Go HTTP function has access to a standardhttp.Requestas the second or third parameter, which includes aURLfield. You could use this to implement your ownmux.