Skip to content

Instantly share code, notes, and snippets.

@pjstadig
Created February 25, 2022 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjstadig/4efd73b55ce30e5a50b4ecd226985853 to your computer and use it in GitHub Desktop.
Save pjstadig/4efd73b55ce30e5a50b4ecd226985853 to your computer and use it in GitHub Desktop.
Plain functions
(ns stadig.main
(:require
[stadig.storage.azure :as storage]))
(defn -main
[& args]
;; ... initialize some things ...
(let [shared-key (System/getenv "AZURE_SHARED_KEY")
storage-conn (storage/connect shared-key)]
(try
;; ... initialize some more things, or maybe just do stuff ...
(finally
(storage/close storage-conn)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment