Skip to content
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

parse magic-wormhole-protocols spec URIs #45

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

meejah
Copy link

@meejah meejah commented Dec 1, 2024

caveat: I have not built Go before, nor a phone-project. Hoping this runs CI :)

@@ -924,24 +924,29 @@ type parsedCode struct {
}

func parseCodeURI(codeStr string) (*parsedCode, error) {
if !strings.HasPrefix(codeStr, "wormhole:") {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to continue to support this protocol so to not break existing clients.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, okay

@psanford
Copy link
Owner

psanford commented Dec 6, 2024

It looks like there is quite a lot wrong with this PR. Please add a unit test for this function that covers the existing and new functionality.

@meejah
Copy link
Author

meejah commented Dec 6, 2024

It looks like there is quite a lot wrong with this PR. Please add a unit test for this function that covers the existing and new functionality.

Yes, sorry, I tend to push stuff as I have it.

I'll take it out of Draft when I believe a review or further action is in order. (If any "actual Go programmers" watching feel motivated, I'm happy to take help). I thought I had a build from Android Studio but it must have built something else.

@psanford
Copy link
Owner

psanford commented Dec 7, 2024

The function is very self contained so you should be able to test it in a stand alone project (or on the go playground). That will probably be easier than setting up a build environment for this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants