ggicci/httpin

Invent a "path" directive to extract values from go-chi/chi's URLParam

Closed this issue · 0 comments

type ListArticlesOfUserInput struct {
	Author string `in:"path=name"`  // should get value from chi.URLParam
	Page   int    `in:"form=page"`
}

Refer to https://github.com/ggicci/httpin/blob/main/gorilla.go