-
Notifications
You must be signed in to change notification settings - Fork 5
Add Go Client #174
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
base: main
Are you sure you want to change the base?
Add Go Client #174
Conversation
| @@ -0,0 +1,3 @@ | |||
| module github.com/justbe-engineering/webview-client-go | |||
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.
This module path is a hallucination. Need to fix that.
| import ( | ||
| "bufio" | ||
| "context" | ||
| "encoding/json" | ||
| "fmt" | ||
| "io" | ||
| "net/http" | ||
| "os" | ||
| "os/exec" | ||
| "path/filepath" | ||
| "runtime" | ||
| "sync" | ||
| ) |
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.
Need to review these dependencies
| // BinVersion should match the cargo package version | ||
| const BinVersion = "0.3.1" |
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.
Should check to ensure the version updating script will also keep this version in sync
| ) | ||
|
|
||
| // Notification Messages that are sent unbidden from the webview to the client. | ||
| type Notification interface{} |
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.
Is it possible to express this as a union type?
| wn("// ContentProvider interface that all content types must implement"); | ||
| wn("type ContentProvider interface {"); | ||
| wn("\tisContent() // marker method"); | ||
| wn("}"); | ||
| wn(""); |
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.
I don't actually like how mangled this is. Should just do a template string gen function.
This is an experiment in using Claude Code to implement new clients. This isn't ready to land yet, it needs a thorough review, but it looks very compelling so far!