Exemplo n.º 1
0
func (art *article) Query(w http.ResponseWriter, request *http.Request) (int, interface{}, error) {
	return goal.HandleQuery(reflect.TypeOf(art), request)
}
Exemplo n.º 2
0
func (user *testuser) Query(w http.ResponseWriter, req *http.Request) (int, interface{}, error) {
	return goal.HandleQuery(reflect.TypeOf(user), req)
}