Urllib package #35
-
Take the URL stuff and put into a sub package for use building URLs server side. |
Beta Was this translation helpful? Give feedback.
Answered by
earthboundkid
Jan 24, 2023
Replies: 3 comments 1 reply
-
Maybe the package name is requrl? urllib is good too. type URL struct { /**/}
func Parse(string) *requrl.URL
func From(*url.URL) *requrl.URL
func (u *URL) Err() error
func (u *URL) String() string // doesn't panic
func (u *URL) URL() *url.URL // doesn't panic
func (u *URL) MustString() // panics
func (u *URL) MustURL() // panics
func (u *URL) Scheme(string) *URL
func (u *URL) Host(string) *URL
func (u *URL) Hostf(string, ...any) *URL
func (u *URL) Path(string) *URL
func (u *URL) Pathf(string, ...any) *URL
func (u *URL) Param(string, ...string) *URL
func (u *URL) UserPass(string, string) *URL |
Beta Was this translation helpful? Give feedback.
0 replies
-
New idea: |
Beta Was this translation helpful? Give feedback.
1 reply
-
Merged in #63. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
earthboundkid
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Merged in #63.