Common isomorphic functionality in one kit.

formparams.go 520B

12345678910111213141516171819202122
  1. // The Isomorphic Go Project
  2. // Copyright (c) Wirecog, LLC. All rights reserved.
  3. // Use of this source code is governed by a BSD-style
  4. // license, which can be found in the LICENSE file.
  5. // +build !clientonly
  6. package isokit
  7. import (
  8. "net/http"
  9. "honnef.co/go/js/dom"
  10. )
  11. type FormParams struct {
  12. FormElement *dom.HTMLFormElement
  13. ResponseWriter http.ResponseWriter
  14. Request *http.Request
  15. UseFormFieldsForValidation bool
  16. FormFields map[string]string
  17. }