You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the API forces you to have a scheme and host.
Maybe the API should have something like urlbuilder.Path, urlbuilder.Scheme etc. which returns a builder? Not sure, but the ergonomics didn't quite work out.
I like the idea of having urlbuilder.Path, urlbuilder.Scheme etc return a builder. The reason I initially forced urlbuilder.New(...) to accept a schema and host was to ensure it would pass the schema and protocol checks in templ.URL.
In my first use of the URL builder, I wanted to create a URL within a site and add a query string. I don't care about the scheme or host.
e.g. I wanted to do something like this:
However, the API forces you to have a scheme and host.
Maybe the API should have something like
urlbuilder.Path
,urlbuilder.Scheme
etc. which returns a builder? Not sure, but the ergonomics didn't quite work out.@garrettladley - ideas?
The text was updated successfully, but these errors were encountered: