package gosubmit import ( "fmt" "io" "net/http" "net/url" "regexp" "strings" "golang.org/x/net/html" ) const ContentTypeForm = "application/x-www-form-urlencoded" const ContentTypeMultipart = "multipart/form-data" const ( ElementSelect = "select" ElementInput = "input" ElementButton = "button" ElementTextArea = "textarea" InputTypeText = "text" InputTypeFile = "file" InputTypeCheckbox = "checkbox" InputTypeRadio = "radio" InputTypeHidden = "hidden" InputTypeSubmit = "submit" InputTypeEmail = "email" InputTypeURL = "url" InputTypeDate = "date" InputTypeNumber = "number" ) // Parse all formsr in the HTML document and set the default URL if