ucpr / dach Goto Github PK
View Code? Open in Web Editor NEWwip: SecHack365.
License: MIT License
wip: SecHack365.
License: MIT License
/user/{username}/hoge
などのときの {username}
のところのマッチングで死ぬ
import dach
var app = newDach()
proc index(ctx: DachCtx): Resp =
ctx.response("Hello")
app.addRoute("/", "index")
app.addView("index", HttpGet, index)
app.addView("index", HttpGet, index) ## Error !
app.run()
app.nim(12) app
dach.nim(34) addView
route.nim(41) addRule
tableimpl.nim(98) []=
tableimpl.nim(32) rawGet
system.nim(2916) sysFatal
Error: unhandled exception: index out of bounds [IndexError]
Error: execution of an external program failed: './hoge '
#高速化案
macroでroutingしようとしたらエラーが発生する
app.get "/":
ctx.response("Hello World")
app.get "/hoge":
ctx.response("Hello World")
など同じメソッドで違うruleを追加しようとしたら怒られる
sendするとこにslowSendをいれて高速化卍
app.get "/":
ctx.response("Hello")
は大丈夫だけど
app.get "/":
var a = "hoge"
ctx.response(a)
などマクロの中(?)が2行以上になったらエラーになる
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.