Skip to content

Instantly share code, notes, and snippets.

@seymores
Created August 12, 2013 07:09
Show Gist options
  • Save seymores/6208758 to your computer and use it in GitHub Desktop.
Save seymores/6208758 to your computer and use it in GitHub Desktop.
Clojure namespace
This is all you need to know about Clojure’s namespace declarations:
(ns my-project.core
; :require Clojure libs
(:require clojure.core.async
[compojure.core :refer [POST routes]]
[compojure.handler :refer :all]
[ring.adapter.jetty :as jetty]
[clojure.edn :as edn :refer [read]])
; :import for Java classes
(:import java.net.Socket
java.net.SocketException))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment