22 karma · joined June 26, 2022
It has something to do with the terminal but this seems to work in every terminal application
I believe that some company monitors websites like reddit and twitter for talk about Monsanto or Big Oil (fracking) and that company pays shills to defend them.
No you don't need a minimize or maximize button, they are actually useless in the GNOME work-flow, and unnecessary on windows too.
Big if true
strings.Split(urlString, "user/")[1]
https://go.dev/play/p/tWi-Ge0CA1XThat's one way to do it.
>more URL parameters
I thought thats what http.Request.ParseForm() was for (assuming correct formatting)
The way I use the standard library is like a super condensed version of React. Templates are my components. Since templates can be nested, templates can be used to build "components" and those components can be stored in separate files and compiled together at run time with a "model" being fed to the template(s) via a state object passed by the application.
So I may have a few dozen template files in a folder called /components, and another folder called /pages with a few templates that use these components. When a user visits a "page", the template file is "compiled" with the appropriate components.
A page might look like this:
<html>
{{template "nav"}}
{{template "thread" .Thread}}
{{template "footer"}}
</html>
And "nav", "thread", and "footer" are all components defined in another file. This allows for re-use across multiple pages.I want to do a write-up on it but I'm not sure if it's a novel idea.
Can you elaborate? Like give me an example of a route path that uses placeholder values? I use Go to build web apps too and I really don't see a need for anything other than the standard library.