Generate bit map value of given component part rule:
go build github.com/yinyin/go-http-route-gen/dev-tool/get-bit-map
Generate routing code:
./go-http-route-gen -in sample/route.yaml -out sample/handler_route.go -package main -type sampleHandler
Build binary for sample HTTP server:
go build -o sample-httpd github.com/yinyin/go-http-route-gen/sample
go-literal-code-gen -in httproutegen/codetemplate.md -out httproutegen/codetemplate.go
This step is optional for user.
Generated code should not rely on generated String()
method.
stringer -type RouteIdent handler_route.go