Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add a Clojure snippet and link #7

Closed
wants to merge 3 commits into from

2 participants

@skuro

clj-msgpack provides a Clojure wrapper, a snippet and a pointer to it were added to the index.html

@oza
Collaborator

Thank you for your pull request, @skuro. The top page of msgpack.org is now automatically generated. Please see here to add your project to msgpack.org.

@oza oza closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 19 additions and 1 deletion.
  1. +1 −1  css/all.css
  2. +18 −0 index.html
View
2  css/all.css
@@ -234,7 +234,7 @@ h3 {
/* quick starts */
.qsset {
- height:20em;
+ height:21.5em;
padding:20px;
/*background-color:#383838;*/
background-color:#444444;
View
18 index.html
@@ -112,6 +112,7 @@ <h3 id="crosslang">Implementation projects</h3>
<li><a onclick="changeQuickStart('qs-objective-c',this)">Objective-C</a></li>
<li><a onclick="changeQuickStart('qs-csharp',this)">C#</a></li>
<li><a onclick="changeQuickStart('qs-lua',this)">Lua</a></li>
+ <li><a onclick="changeQuickStart('qs-clojure',this)">Clojure</a></li>
<li><a onclick="changeQuickStart('qs-scala',this)">Scala</a></li>
<li><a onclick="changeQuickStart('qs-d',this)">D</a></li>
<li><a onclick="changeQuickStart('qs-haskell',this)">Haskell</a></li>
@@ -263,6 +264,23 @@ <h3 id="crosslang">Implementation projects</h3>
-->
</div>
+ <div id="qs-clojure" class="qs">
+ <h4>Scala</h4>
+ <ul class="hlist">
+ <li><a href="https://github.com/grammati/clj-msgpack">GitHub</a></li>
+ </ul>
+ <pre class="prettyprint">
+(ns foo
+ (:require [clj-msgpack.core :as mp])
+ (:use [clojure.java.io :only [output-stream]])
+
+(def data [nil true false {"yo" "dawg"} ["foo" "bar"]])
+(with-open [f (output-stream "./temp.dat")]
+ (mp/pack-into f "Hello" 23)
+ (apply mp/pack-into f data))
+ </pre>
+ </div>
+
<div id="qs-scala" class="qs">
<h4>Scala</h4>
<ul class="hlist">
Something went wrong with that request. Please try again.