From b905ef81e9487d8028a9de1bb17fd5a786299554 Mon Sep 17 00:00:00 2001 From: ACGNnsj Date: Wed, 1 Feb 2023 11:10:44 +0800 Subject: [PATCH] 2 --- src/main/clojure/main/hello.clj | 5 +++-- src/main/clojure/wrapper/twitter.clj | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 src/main/clojure/wrapper/twitter.clj diff --git a/src/main/clojure/main/hello.clj b/src/main/clojure/main/hello.clj index a203a71..d58080d 100644 --- a/src/main/clojure/main/hello.clj +++ b/src/main/clojure/main/hello.clj @@ -1,10 +1,11 @@ (ns main.hello (:gen-class) - (:import (org.example.api Calculation))) + (:require [wrapper.twitter :refer [add]])) + (defn -main "I don't do a whole lot ... yet." [& args] (println "Hello, World!") - (println (Calculation/add 1 2)) + (println (add 4 5)) ) diff --git a/src/main/clojure/wrapper/twitter.clj b/src/main/clojure/wrapper/twitter.clj new file mode 100644 index 0000000..3e17b70 --- /dev/null +++ b/src/main/clojure/wrapper/twitter.clj @@ -0,0 +1,6 @@ +(ns wrapper.twitter + (:import (org.example.api Calculation))) +(defn add + "docstring" + [x y] (Calculation/add x y) + ) \ No newline at end of file