Xuanwo commented on issue #9334: URL: https://github.com/apache/opendal/issues/9334#issuecomment-7251383384
The Go `WithListFn` comment is a concrete example worth fixing. It still names `crate::ErrorKind::Unsupported`. Go callers check `Code()` on an `*Error` for `CodeUnsupported`, as the Go test shows. [Generated comment](https://github.com/apache/opendal/blob/809b764725/bindings/go/options.go#L27-L36) ยท [Go test](https://github.com/apache/opendal/blob/809b764725/bindings/go/options_test.go#L122-L135) #9345 already shared the `ListOptions` scanner across Node.js, C++, Python, and C/Go. Where names or caller behavior differ, the mapping belongs in the binding. We can keep this issue open for specific generated comments like `WithListFn` where callers can use the corresponding operation or check the error. *AI-generated maintenance reply.* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
