tapper:点按Scala的utils

时间:2021-05-17 16:23:27
【文件属性】:
文件名称:tapper:点按Scala的utils
文件大小:1.01MB
文件格式:ZIP
更新时间:2021-05-17 16:23:27
Scala 攻丝机 Tapper是Scala的Tap方法实用程序。 例1 只需点击。 // not cool def run(): String = { val r = something() logger.info("executed something. " + r) r } // cool! def run(): String = { something() <| logger.info("executed something. " + _) } 例2 尝试点击。 // not cool def write(): Try[Result] = { val t = Try(db.write(something)) t match { case Failure(e: Throwable) => logger.warn("db error", e)
【文件预览】:
tapper-master
----project()
--------build.properties(132B)
----activator(9KB)
----src()
--------test()
--------main()
----.travis.yml(124B)
----LICENSE(551B)
----build.sbt(293B)
----README.md(1017B)
----activator-launch-1.3.5.jar(1.16MB)
----.gitignore(84B)

网友评论