(ctx dotweb.Context)
| 45 | } |
| 46 | |
| 47 | func TestBind(ctx dotweb.Context) error { |
| 48 | type UserInfo struct { |
| 49 | UserName string |
| 50 | Sex int |
| 51 | } |
| 52 | user := new(UserInfo) |
| 53 | errstr := "no error" |
| 54 | if err := ctx.Bind(user); err != nil { |
| 55 | errstr = err.Error() |
| 56 | } else { |
| 57 | |
| 58 | } |
| 59 | |
| 60 | return ctx.WriteString("TestBind [" + errstr + "] " + fmt.Sprint(user)) |
| 61 | } |
| 62 | |
| 63 | func GetBind(ctx dotweb.Context) error { |
| 64 | //type UserInfo struct { |
nothing calls this directly
no test coverage detected