clojure台灣身分證字號檢核程式庫,包含新版及舊版外來人口統一證號檢核
When you first clone this repository, run:
lein duct setup
This will create files for local configuration, and prep your system for the project.
To begin developing, start with a REPL.
lein repl
Then load the development environment.
user=> (dev)
:loaded
Run go
to prep and initiate the system.
dev=> (go)
:duct.server.http.jetty/starting-server {:port 3000}
:initiated
提供以下檢核函數:
(taiwan-id? id) ; 台灣身分證號檢核
(foreigner-old? id) ; 舊版外來人口統一證號檢核
(foreigner-id? id) ; 新版外來人口統一證號檢核
(some-id? id) ; 身份證號或外來人口統一證號檢核
另外定義了對應的 struct 物件供 struct 運用:
taiwan-id-valid?
foreigner-old-valid?
foreigner-id-valid?
some-id-valid?
Testing is fastest through the REPL, as you avoid environment startup time.
dev=> (test)
...
But you can also run tests through Leiningen.
lein test
Copyright © 2020 FIXME
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close