Comment

Comment by telesoft

Assuming the url is formatted correctly:

  strings.Split(urlString, "user/")[1]
https://go.dev/play/p/tWi-Ge0CA1X

That's one way to do it.

>more URL parameters

I thought thats what http.Request.ParseForm() was for (assuming correct formatting)

parent telesoft 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton