search for: generate_golang_closures_go

Displaying 3 results from an estimated 3 matches for "generate_golang_closures_go".

2023 Aug 04
1
[libnbd PATCH] golang: Optionally use gofmt on generated .go files
...erator.ml @@ -57,10 +57,15 @@ let output_to "ocaml/NBD.ml" OCaml.generate_ocaml_nbd_ml; output_to "ocaml/nbd-c.c" OCaml.generate_ocaml_nbd_c; - output_to "golang/bindings.go" GoLang.generate_golang_bindings_go; - output_to "golang/closures.go" GoLang.generate_golang_closures_go; - output_to "golang/wrappers.go" GoLang.generate_golang_wrappers_go; + output_to ~formatter:(Some Gofmt) "golang/bindings.go" + GoLang.generate_golang_bindings_go; + output_to ~formatter:(Some Gofmt) "golang/closures.go" + GoLang.generate_golang_closures_go;...
2020 Mar 24
1
[PATCH libnbd v3] Add Go language bindings (golang) (RHBZ#1814538).
This feature is roughly finished now, although it needs a few more tests and some examples. It's pretty much up to par with all the other bindings, but it lacks a completely safe AIO buffer. It won't stop you from freeing the buffer too early) because golang's GC inexplicably lacks a way to declare a root from C. I can probably do it with a global variable and ref counting on the
2020 Mar 25
3
[PATCH libnbd v4] Add Go language bindings (golang) (RHBZ#1814538).
Now runs a complete set of tests, notably including the AIO test. File descriptors are passed in and out as plain ints (instead of *os.File) for a couple of reasons: (1) We have to pass the plain int to syscall.Select. (2) Turning an fd into an os.File causes golang to set the blocking flag which is deeply unhelpful. Rich.