Liking cljdoc? Tell your friends :D

Examples index

One runnable round trip per binding: build the tutorial message, encode it, decode it back, print it. Most run from the repo root; every command below is quoted from that binding's README or build.sh.

bindingexamplerun
Cbindings/c/examples/addressbook.c, gateway.cmake test builds and runs both
C++bindings/cpp/examples/addressbook.ccmake examples
Embeddedbindings/embedded/examples/roundtrip.cmake test builds and runs it
Pythonbindings/python/examples/addressbook.pypython bindings/python/examples/addressbook.py
Gobindings/go/examples/roundtrip.gogo run ./examples/roundtrip.go (from bindings/go)
Javabindings/java/examples/Roundtrip.javacd bindings/java && ./build.sh (self-check + example)
Kotlinbindings/kotlin/examples/Roundtrip.ktcd bindings/kotlin && ./build.sh (fat jar + RoundtripKt)
Clojurebindings/clojure/examples/roundtrip.cljcd bindings/clojure && ./build.sh (clojure.main -m roundtrip)
Scalabindings/scala/examples/cd bindings/scala && ./build.sh (javac + scalac, self-check + example)
Nodebindings/node/examples/roundtrip.jsnode bindings/node/examples/roundtrip.js
Rubybindings/ruby/examples/roundtrip.rbruby -Ibindings/ruby/lib bindings/ruby/examples/roundtrip.rb
Objective-Cbindings/objc/examples/bindings/objc/build.sh example
PHPbindings/php/examples/roundtrip.phpphp examples/roundtrip.php (from bindings/php)
Dartbindings/dart/examples/roundtrip.dartdart run examples/roundtrip.dart (from bindings/dart)
Rustbindings/rust/examples/roundtrip.rscargo run --example roundtrip -- ../c/tests/data/matrix3.desc (from bindings/rust)
C#bindings/csharp/examples/dotnet run --project examples -- ../c/tests/data/matrix3.desc (from bindings/csharp)
F#bindings/fsharp/examples/dotnet run --project examples -- ../c/tests/data/matrix3.desc (from bindings/fsharp)
Luabindings/lua/examples/roundtrip.lualua examples/roundtrip.lua (from bindings/lua; also run by make lua-test)
Erlangbindings/erlang/examples/addressbook.escriptescript examples/addressbook.escript (from bindings/erlang)
Elixirbindings/elixir/examples/addressbook.exsmix run examples/addressbook.exs (from bindings/elixir)
Zigbindings/zig/examples/roundtrip.zigzig build example (from bindings/zig)
Swiftbindings/swift/examples/gen/ (generated model)cd bindings/swift && ./build.sh example
Juliabindings/julia/examples/roundtrip.jljulia --project=runtime examples/roundtrip.jl (from bindings/julia)
Rbindings/r/examples/roundtrip.RRscript examples/roundtrip.R (from bindings/r)

Typed variants of the same round trip live in codegen: every binding's tests/gen/ (committed output of protoc-gen-pbwire) and examples/gen/ (the same addressbook through the generated model). The official-conformance angle is in testing.md; the numbers angle in ../BENCHMARKS.md.

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close