Skip to content

Instantly share code, notes, and snippets.

@pjstadig
Created February 25, 2022 14:02
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/768f17dcc66492c2b79836ca92c16745 to your computer and use it in GitHub Desktop.
Save pjstadig/768f17dcc66492c2b79836ca92c16745 to your computer and use it in GitHub Desktop.
Multimethods
(ns stadig.widget
(:require
[stadig.storage.methods :as storage]))
(defn store-widget
[storage-conn widget-name]
(storage/put storage-conn
"widgets"
widget-name
(pr-str {:type :widget :name widget-name})))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment