Hi, Path parameters: http:// <host>/path_parameter_1/path_parameter_2/?query_param1=... The default library does not handle path parameters.
If you don't want to use an external library, you can implement your own parsing by using url.EscapedPath. On Thu, Nov 17, 2022 at 9:23 AM Peter Galbavy <pe...@wonderland.org> wrote: > If you look in the http.Request passed to your handler, there is a URL > field - use the net/url package to pull this out: > > https://pkg.go.dev/net/url#URL > > On Wednesday, 16 November 2022 at 09:08:38 UTC squadglad...@gmail.com > wrote: > >> Hello Everyone, >> >> I'm developing a http server using inbuilt http/net package in golang. >> Is there any way to get the path parameters from end points without using >> any external third-party web framework? >> >> Thanks. >> > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/acba5b94-0f4e-4034-ae48-c407675d411fn%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/acba5b94-0f4e-4034-ae48-c407675d411fn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAGZeQSLO4i%2B1SJro%3DBRcB5dECxrLZuui5fh9ZLqHh1-5K6zq1w%40mail.gmail.com.