type User struct {
Name string `c3po:"required"`
Age int `c3po:"min=18"`
}
data := &User{Name: "Luke", Age: 17}
schema := c3po.ParseSchema(data)
res := schema.Decode(data)
if res.HasError() {
fmt.Println(res.Errors())
}
u := res.Value().(*User)
func main() {
app := braza.NewApp(nil)
app.GET("/hello", func(ctx *braza.Ctx){
ctx.JSON(map[string]string{"hello":"world!"},200)
})
app.Listen()
}