Created
February 25, 2022 14:21
-
-
Save pjstadig/6f47652ce8801a58acff5cd6f13e0697 to your computer and use it in GitHub Desktop.
Protocol + client + multimethod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns stadig.widget | |
(:require | |
[stadig.storage :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