-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(stdlib): add net/url
#1066
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like CI is failing too. First issue is because we now have the "net" directory it is considered "existing" as a package. Possible solution: change Hopefully with this also the second issue should be solved (seems roughly of same nature). |
Should we have a |
Good point @ilgooz. I reviewed the net/ directory, and no subpackages look like good candidates to be included in Gno. I think I propose changing the import path to |
thanks for the tip, I will try to do that.
Wouldn't it be better to keep it in sync with the original |
d7fb5c4
to
018e72a
Compare
018e72a
to
558fd77
Compare
558fd77
to
9572900
Compare
I had to change |
…no files) Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
add 'Cut', 'CutPrefix' and 'CutSuffix' methods to "strings" package Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
9572900
to
07f9064
Compare
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
07f9064
to
cbc994d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 💯
I've left just a small comment, other than that it seems good to go
|
||
import ( | ||
"bytes" | ||
// encodingPkg "encoding" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this intentionally left commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes ! since it's copy/past from the orignal golang files, I prefere to simply comment instead of removing the line to easily find & fix if we add this package one day !
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #1066 +/- ##
==========================================
+ Coverage 46.97% 47.03% +0.05%
==========================================
Files 365 365
Lines 61156 61156
==========================================
+ Hits 28729 28763 +34
+ Misses 30066 30037 -29
+ Partials 2361 2356 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Added the `net/url` package. This package will be beneficial for manipulating URLs, for instance, parsing query parameters or for URL muxing in realms. depends: - [x] gnolang#1076 - [x] gnolang#1065 <details><summary>Contributors' checklist...</summary> - [X] Added new tests, or not needed, or not feasible - [ ] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [ ] Updated the official documentation or not needed - [X] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [X] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). </details> --------- Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com> Co-authored-by: Manfred Touron <94029+moul@users.noreply.github.com>
Added the
net/url
package. This package will be beneficial for manipulating URLs, for instance, parsing query parameters or for URL muxing in realms.depends:
path
package #1065Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description