This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch main
in repository ego.

View the commit online.

commit 9d23fff77b91e7e0bec5ca8d046fc4dabe7b1492
Author: [email protected] <[email protected]>
AuthorDate: Mon Mar 9 15:41:32 2026 -0600

    fix: skip output parameters when generating method bindings
    
    The buildMethodData function now filters out ParamOut and ParamInOut
    parameters to prevent generating invalid Go code for methods with output
    parameters. Output parameter handling is deferred for future implementation.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
---
 cmd/ego-gen/main.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cmd/ego-gen/main.go b/cmd/ego-gen/main.go
index 4c5ee37..61292cc 100644
--- a/cmd/ego-gen/main.go
+++ b/cmd/ego-gen/main.go
@@ -250,6 +250,9 @@ func buildMethodData(f *Function, cPrefix string) MethodData {
 
 	var params []ParamData
 	for _, p := range f.Parameters() {
+		if p.Direction() != ParamIn {
+			continue // skip out/inout for now
+		}
 		params = append(params, buildParamData(p))
 	}
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to