remove source, remove deadcode, fix linting issues

This commit is contained in:
Caleb Doxsey 2023-04-21 09:08:56 -06:00
parent 681cf6fa27
commit 9fe4361d85
116 changed files with 404 additions and 535 deletions

View file

@ -30,7 +30,7 @@ func Parse(r io.Reader) []Form {
var visit func(*html.Node)
visit = func(node *html.Node) {
if node.Type == html.ElementNode && node.Data == "form" {
currentForm = &Form{Action: "", Method: "GET", Inputs: make(map[string]string)}
currentForm = &Form{Action: "", Method: http.MethodGet, Inputs: make(map[string]string)}
for _, attr := range node.Attr {
switch attr.Key {
case "action":