inegration: fix linting issues

This commit is contained in:
Caleb Doxsey 2020-04-28 08:17:22 -06:00
parent cb3e78cd01
commit b11a336a33
8 changed files with 21 additions and 12 deletions

View file

@ -1,3 +1,4 @@
// Package forms has helper functions for working with HTML forms.
package forms
import (
@ -69,6 +70,7 @@ func Parse(r io.Reader) []Form {
return forms
}
// NewRequestWithContext creates a new request from the form details.
func (f *Form) NewRequestWithContext(ctx context.Context, baseURL *url.URL) (*http.Request, error) {
actionURL, err := url.Parse(f.Action)
if err != nil {